@cmk/fe_utils
Version:
frontend utility library
17 lines (15 loc) • 369 B
TypeScript
import { ReactNode } from 'react';
export type UserActionDef = {
value?: string;
label: string;
tooltip?: string | ReactNode;
disabled?: boolean;
icon?: ReactNode;
loading?: boolean;
};
export type UserAction = UserActionDef & {
onClick: () => void;
};
export type UserNavigationAction = Omit<UserAction, 'value'> & {
value: string;
};