import { expandNotificationCenterAtom, NotificationCenter, pushNotificationAtom, } from '@affine/component/notification-center'; import type { Meta } from '@storybook/react'; import { useAtomValue, useSetAtom } from 'jotai'; export default { title: 'AFFiNE/NotificationCenter', component: NotificationCenter, } satisfies Meta; let id = 0; const image = ( ); export const Basic = () => { const push = useSetAtom(pushNotificationAtom); const expand = useAtomValue(expandNotificationCenterAtom); return ( <>
{expand ? 'expanded' : 'collapsed'}
); };