import { IconButton } from '@/components/IconButton'; import { TitleBar, Title } from '@/components/TitleBar'; import { FunctionComponent } from 'preact'; import { Preferences } from './preferences'; import { PreferencesMenu } from './menu'; import { HelpAndFeedback } from './help-feedback'; import { observer } from 'mobx-react-lite'; interface PreferencesViewProps { close: () => void; } export const PreferencesCanvas: FunctionComponent<{ preferences: Preferences; }> = observer(({ preferences: prefs }) => (
{/* Temporary selector until a full solution is implemented */} {prefs.selectedItem.label === 'Help & feedback' ? ( ) : null}
)); export const PreferencesView: FunctionComponent = observer(({ close }) => { const prefs = new Preferences(); return (
{/* div is added so flex justify-between can center the title */}
Your preferences for Standard Notes { close(); }} type="normal" iconType="close" />
); });