ConvoyPanel/resources/scripts/util/useNotify.ts
2023-11-06 04:12:03 +00:00

13 lines
358 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