Add table and menu components

This commit is contained in:
2023-10-24 11:37:29 +07:00
parent 52c3e28fbc
commit 9918c7c3a4
10 changed files with 305 additions and 0 deletions
@@ -0,0 +1,21 @@
export interface IMenusContext {
openId?: string;
close?: () => void;
open?: React.Dispatch<React.SetStateAction<string>>;
}
export interface IButton {
children?: string;
icon?: JSX.Element;
onClick?: () => void;
}
export interface ITable {
columns?: string;
children: React.ReactNode;
}
export interface ITableBody<T> {
data?: T[];
render?: (value: T) => JSX.Element;
}