import { ReactNode } from "react"; interface LayoutMasterActionsProps { children?: ReactNode; selectedRowKeys?: KeyType[]; } const LayoutMasterActions = (props: LayoutMasterActionsProps) => { const { selectedRowKeys, children } = props; return (
{(!selectedRowKeys || selectedRowKeys?.length === 0) && (
{children}
)}
); }; export default LayoutMasterActions;