goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
16 lines • 617 B
TypeScript
interface UseManageRowProps {
onManage?: (selectedRows: string[]) => void;
selectedRows: string[];
handleSelectionChange: (newSelectedIds: string[]) => void;
}
/**
* A hook for handling "Manage" row interactions:
* - closing the ManageRow component (clearing selection if needed)
* - calling the parent-provided `onManage` callback with the current selected rows
*/
export declare function useManageRow({ onManage, selectedRows, handleSelectionChange, }: UseManageRowProps): {
handleManageRowClose: () => void;
handleManage: () => void;
};
export {};
//# sourceMappingURL=useManageRow.d.ts.map