/* eslint-disable react-perf/jsx-no-new-array-as-prop */ import { Box, Static } from 'ink'; import { Header } from '@boost/cli/react'; import { List } from './List'; import { type FileTree, Tree } from './Tree'; export type FileFormat = 'list' | 'tree'; export interface FilesProps { format: FileFormat; list: string[]; name: string; tree: FileTree; } export function Files({ format, list, name, tree }: FilesProps) { if (format === 'list') { return ( {(root) => (
)} ); } return ( {(root) => (
)} ); }