Renders a styled, copy-enabled list of file/folder paths, and exports pre-defined OpenFrame installation paths and doctor commands for Windows, macOS, and Linux. ## Key Components ### `PathsDisplay` (Component) The primary export. Renders paths in a bordered, monospace list with optional title, description, leading icon per row, and per-path copy buttons. | Prop | Type | Default | Description | |---|---|---|---| | `paths` | `string[]` | — | Paths to display | | `onCopyPath` | `(path: string) => void` | — | Copy button callback | | `title` | `string` | — | Heading above the list | | `description` | `string` | — | Subheading below title | | `showCopyButtons` | `boolean` | `true` | Show/hide copy buttons | | `copyIconSize` | `string` | `'w-6 h-6'` | Tailwind size classes for the copy icon | | `leadingIcon` | `React.ReactNode` | — | Icon prepended to each row (e.g. platform logo) | | `className` | `string` | — | Extra classes on the container | Returns `null` when `paths` is empty. ### `OPENFRAME_PATHS` Constant record of platform-specific OpenFrame installation paths. ```typescript OPENFRAME_PATHS.windows // C:\Program Files\OpenFrame, etc. OPENFRAME_PATHS.darwin // /Library/LaunchDaemons/..., etc. OPENFRAME_PATHS.linux // /opt/openframe/ ``` ### `OPENFRAME_DOCTOR_COMMANDS` Per-platform shell commands for diagnosing and repairing the OpenFrame agent. ### Helper Functions - **`getOpenFramePaths(platform)`** — returns a mutable copy of `OPENFRAME_PATHS[platform]` - **`getOpenFrameDoctorCommand(platform)`** — returns the doctor command string for a platform ### `OpenFramePathsPlatform` (Type) `'windows' | 'darwin' | 'linux'` ## Usage Example ```typescript import { PathsDisplay, getOpenFramePaths } from '@flamingo/ui-kit/components/features' // Basic antivirus exclusion list { navigator.clipboard.writeText(path) toast({ title: 'Copied', description: 'Path copied to clipboard' }) }} /> // With a platform logo as a leading icon } showCopyButtons={false} /> ``` ## Source [`paths-display.tsx`](https://github.com/flamingo-stack/openframe-oss-lib/blob/main/paths-display.tsx)