import Icon from '@/Components/Icon/Icon' import { AppState } from '@/UIModels/AppState' import { observer } from 'mobx-react-lite' import { MouseEventHandler, useCallback } from 'react' type Props = { appState: AppState } const NoAccountWarning = observer(({ appState }: Props) => { const showAccountMenu: MouseEventHandler = useCallback( (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.