// Adapted from DeepSeek Harness (MIT). Full license: docs/official-menu-icons.md. import type { ComponentType } from 'react' import Svg, { Path } from 'react-native-svg' import { OFFICIAL_MENU_ARTWORK, type OfficialMenuIconKind } from './official-menu-icon-data' type MenuIconProps = { size?: number; color?: string } type ArtworkPath = { d: string stroke?: string fill?: string opacity?: string strokeLinejoin?: 'round' | 'miter' | 'bevel' strokeMiterlimit?: string } function officialIcon(kind: OfficialMenuIconKind): ComponentType { return function OfficialMenuIcon({ size = 16, color = 'currentColor' }: MenuIconProps) { const artwork = OFFICIAL_MENU_ARTWORK[kind] return ( {(artwork.paths as readonly ArtworkPath[]).map((path, index) => ( ))} ) } } export const OfficialMenuIcons = { referenceFile: officialIcon('referenceFile'), referenceFolder: officialIcon('referenceFolder'), referenceSession: officialIcon('referenceSession'), file: officialIcon('file'), goal: officialIcon('goal'), plan: officialIcon('plan'), feedback: officialIcon('feedback'), compact: officialIcon('compact'), permission: officialIcon('permission'), model: officialIcon('model'), export: officialIcon('export'), skill: officialIcon('skill'), newChat: officialIcon('newChat'), sliders: officialIcon('sliders'), edit: officialIcon('edit'), pin: officialIcon('pin'), pinFill: officialIcon('pinFill'), fork: officialIcon('fork'), archive: officialIcon('archive'), unarchive: officialIcon('unarchive'), copy: officialIcon('copy'), ellipsis: officialIcon('ellipsis'), } satisfies Record>