// Types import { TUser } from './types'; interface IMenusContext { openId?: string; close?: () => void; open?: React.Dispatch>; } interface IButton { children?: string; icon?: JSX.Element; onClick?: () => void; } interface ITable { columns?: string; children: React.ReactNode; } interface ITableBody { data?: T[]; render?: (value: T) => JSX.Element; } interface IDialogProps { title?: string; children?: JSX.Element[] | JSX.Element; onClose?: () => void; reload?: boolean; setReload?: React.Dispatch>; ref?: React.MutableRefObject; user?: TUser | null; isAdd?: boolean; } export type { IMenusContext, IButton, ITable, ITableBody, IDialogProps };