// @flow import { ALERT } from 'constants/icons'; import React from 'react'; import Button from 'component/button'; import Card from 'component/common/card'; import SettingAutoLaunch from 'component/settingAutoLaunch'; import SettingClosingBehavior from 'component/settingClosingBehavior'; import SettingsRow from 'component/settingsRow'; // @if TARGET='app' const IS_MAC = process.platform === 'darwin'; // @endif type Props = { clearCache: () => Promise, }; export default function SettingSystem(props: Props) { const { clearCache } = props; const [clearingCache, setClearingCache] = React.useState(false); return ( {/* @if TARGET='app' */} {/* Auto launch in a hidden state doesn't work on mac https://github.com/Teamwork/node-auto-launch/issues/81 */} {!IS_MAC && ( )} {/* @endif */} {/* @if TARGET='app' */} {/* @endif */}