import { IconProps } from '@components/Icon'; export interface StatItemProps { /** * The action type of the element. When set to `vote`, we will toggle between the * active and inactive styles for the element on every click, and pass the current * state to the `onClick` callback. Defaults to `view`. * @defaultValue `view` */ action?: 'view' | 'vote'; /** * Whether or not the button is active. When the action type is set to `vote`, this * `active` prop can be used for controlling the element's state. * @defaultValue false */ active?: boolean; /** Label/name of statistic. */ label: string; /** The data-point of the statistic. */ count: number; /** Icon to be shown on the right of the item */ icon: IconProps['name']; /** Statistic item click handler. */ onClick: (active?: boolean) => void; } declare const StatItem: (props: StatItemProps) => JSX.Element; export default StatItem;