@cmk/fe_utils
Version:
frontend utility library
19 lines (15 loc) • 343 B
text/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
}