huridocs/uwazi

View on GitHub
app/react/V2/atoms/notificationAtom.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { atomWithReset } from 'jotai/utils';
import { NotificationProps } from '../Components/UI/Notification';

type notificationAtomType = Omit<NotificationProps, 'dismissAction'>;

const notificationAtom = atomWithReset({} as notificationAtomType);

export type { notificationAtomType };
export { notificationAtom };