import type React from 'react' import { type BezierIcon } from '@channel.io/bezier-icons' import type { BezierComponentProps, ChildrenProps } from '~/src/types/props' export type ItemActionWithIcon = { icon: BezierIcon tooltip?: string onClick?: React.MouseEventHandler } export type KeyValueItemAction = ItemActionWithIcon | React.ReactElement interface KeyValueItemOwnProps { keyIcon?: BezierIcon | React.ReactNode keyContent?: React.ReactNode actions?: KeyValueItemAction | KeyValueItemAction[] onClickKey?: React.MouseEventHandler onClickValue?: React.MouseEventHandler } export interface KeyValueItemProps extends BezierComponentProps<'div'>, ChildrenProps, KeyValueItemOwnProps {}