update NotificationAttributes

This commit is contained in:
Abhinav 2022-11-01 10:29:57 +05:30
parent a6f9c6db00
commit 35500f8308

View file

@ -2,13 +2,12 @@ import { ButtonProps } from '@mui/material/Button';
import { ReactNode } from 'react';
export interface NotificationAttributes {
icon?: ReactNode;
startIcon?: ReactNode;
variant: ButtonProps['color'];
message: JSX.Element | string;
action?: {
text: string;
callback: () => void;
};
subtext?: JSX.Element | string;
onClick?: () => void;
endIcon?: ReactNode;
}
export type SetNotificationAttributes = React.Dispatch<