UNPKG

table-reuse

Version:

Common, reusable React UI components

10 lines (9 loc) 270 B
export declare function useDrawerController<T>(): { drawerVisible: boolean; editingItem: T | undefined; openDrawer: (data?: T) => void; closeDrawer: () => void; clearEditingItem: () => void; onAdd: () => void; onEdit: (record: T) => void; };