import { toDirective } from './utils';
import { Icon } from './Icon';
import { AppState } from '@/ui_models/app_state';
import { observer } from 'mobx-react-lite';
type Props = { appState: AppState };
const NoAccountWarning = observer(({ appState }: Props) => {
const canShow = appState.noAccountWarning.show;
if (!canShow) {
return null;
}
return (
Data not backed up
Sign in or register to back up your notes.
);
});
export const NoAccountWarningDirective = toDirective(NoAccountWarning);