Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Notifier = (props: Props) => {
const showNotification = globalActions.useShowNotification<
Props & { id: number }
>();
React.useEffect(() => {
const notification = showNotification(
{
id: 0,
domain: props.domain,
kind: props.kind,
text: props.text,
},
isNumber(props.dismissAfter)
? { ...props.meta, dismissAfter: props.dismissAfter }
: props.meta
);
return () => {