import type { ReactNode } from 'react' import { Check } from 'lucide-react' /** An entry in a packing popover: icon column, label, a tick on the current choice (the shared look is in packingPopoverStyles.ts). */ interface PopoverItemProps { icon: ReactNode label: string onClick: () => void active?: boolean danger?: boolean /** A secondary line, such as Add bag, in the faint text colour. */ muted?: boolean /** What sits at the right end; the current choice gets a tick by default. */ trailing?: ReactNode } export function PopoverItem({ icon, label, onClick, active = false, danger = false, muted = false, trailing }: PopoverItemProps) { const tone = danger ? '#ef4444' : muted ? 'var(--text-faint)' : 'var(--text-primary)' return ( ) }