import type { ComponentType, ReactNode } from 'react'; import type { COLOR } from '../../constant/color'; import type { DotProps } from '../components'; /** * 아이콘 컴포넌트 자리에 쓰이는 타입. MCP가 props 추출 시 이 타입의 정체성을 감지하여 * 문자열 이름을 실제 아이콘 컴포넌트로 치환할 수 있도록 nominal brand를 부착한다. * * 런타임 영향 없음 (브랜드 필드는 optional never, 실제로 할당할 수 없음). */ export type SlotIconComponent = ComponentType<{ height?: number; width?: number; color?: string; className?: string; }> & { readonly __ncuaSlotIconBrand?: never; }; export type IconSlotType = { type: 'icon'; icon: SlotIconComponent; color?: keyof typeof COLOR; size?: number; }; export type DotSlotType = { type: 'dot'; color: DotProps['color']; size: DotProps['size']; }; export type CustomSlotType = { type: 'custom'; children: ReactNode; }; export type SideSlotType = IconSlotType | DotSlotType | CustomSlotType;