ConvoyPanel/resources/scripts/util/useNotify.ts
2022-11-06 16:19:43 +00:00

12 lines
308 B
TypeScript

import { NotificationProps, showNotification } from '@mantine/notifications'
const useNotify = () => {
return (props: Omit<NotificationProps, 'style'>) => showNotification({
...props,
style: {
transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
},
})
}
export default useNotify