import type { IconName } from './icon'; export type CodeSnippetCopyState = 'copy' | 'copied' | 'failed'; export const COPY_STATES: Record< CodeSnippetCopyState, { label: string; icon: IconName } > = { copy: { label: 'Copy', icon: 'content-copy' }, copied: { label: 'Copied', icon: 'check' }, failed: { label: 'Failed', icon: 'alert' }, } as const;