import type { ButtonHTMLAttributes, FC } from 'react'; import type { TestableProps } from '../../utils/testId'; import type { PresetValue } from './types'; export interface CalendarPresetItemProps extends Omit, 'children' | 'color' | 'type' | 'value'>, TestableProps { /** Display label for the preset */ label: string; /** Preset value - dates array or named preset string */ value: PresetValue; /** Keyboard shortcut key */ shortcut?: string; /** Whether to display the shortcut badge */ showShortcut?: boolean; } /** * Individual preset item in the presets sidebar. * Triggers date selection when clicked without closing the calendar. * * Arbitrary HTML attributes (`data-analytics-id`, `data-analytics-props`, * `data-testid`, `aria-*`, `id`, `onClick`) land on the rendered `