From 8ed14b7f584ae219a26a7f5fe39e9b5f778cc7cb Mon Sep 17 00:00:00 2001 From: QQ Date: Sat, 14 Nov 2026 14:21:40 +0800 Subject: [PATCH] Import apps/android/src/ui/official-menu-icons.tsx --- apps/android/src/ui/official-menu-icons.tsx | 58 +++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 apps/android/src/ui/official-menu-icons.tsx diff --git a/apps/android/src/ui/official-menu-icons.tsx b/apps/android/src/ui/official-menu-icons.tsx new file mode 100644 index 0000000..a2b35f0 --- /dev/null +++ b/apps/android/src/ui/official-menu-icons.tsx @@ -0,0 +1,58 @@ +// 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>