mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-23 04:19:48 +00:00
Add table and menu components
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user