import React, { PureComponent } from 'react' import cc from 'classcat' import { Item, ItemStatus } from '../_internals/item' import { prefix } from '../_utils' import { A11yProps, pickA11yProps } from '../_utils/interfaces' import { NormalizeProps } from '../layout/layoutNormalizer' import { Loader } from '../loader/Loader' export const ItemActionStatus = ItemStatus export type ItemActionProps = NormalizeProps & A11yProps & Readonly<{ action: string subLabel?: string highlighted?: boolean tag?: JSX.Element className?: string href?: string | JSX.Element status?: ItemStatus leftAddon?: React.ReactNode onClick?: (event: React.MouseEvent) => void onBlur?: (event: React.FocusEventHandler) => void onFocus?: (event: React.FocusEventHandler) => void onMouseDown?: (event: React.MouseEvent) => void onDoneAnimationEnd?: () => void hideHoverBackground?: boolean }> export class ItemAction extends PureComponent { static defaultProps: Partial = { highlighted: true, status: ItemStatus.DEFAULT, // eslint-disable-next-line react/button-has-type tag: