import { Icon } from '@/Components/Icon' import { AppState } from '@/UIModels/AppState' import { observer } from 'mobx-react-lite' import { useCallback } from 'preact/hooks' type Props = { appState: AppState } export const NoAccountWarning = observer(({ appState }: Props) => { const canShow = appState.noAccountWarning.show if (!canShow) { return null } const showAccountMenu = useCallback( (event: Event) => { event.stopPropagation() appState.accountMenu.setShow(true) }, [appState], ) const hideWarning = useCallback(() => { appState.noAccountWarning.hide() }, [appState]) return (
Sign in or register to back up your notes.