UNPKG

@grandlinex/react-components

Version:
32 lines (31 loc) 854 B
import React, { ReactNode } from 'react'; import { INames } from '@grandlinex/react-icons'; import { MenuItem } from '../menu/DropDownIconMenu'; export type NotificationElementProps = { key: string; active: boolean; selected: boolean; title: string; message: string; date?: string; }; declare function NotificationElement({ el, onClick, button, icon, color, image, menu, fallbackIcon, }: { el: NotificationElementProps; onClick?: () => void; icon?: ReactNode; color?: string; image?: string; fallbackIcon?: { color?: string; icon: INames; }; menu?: MenuItem[]; button?: { onClick: () => Promise<void>; show: () => boolean; content: ReactNode; tooltip?: string; key: string; }[]; }): React.JSX.Element; export { NotificationElement };