import React from "react"; import { cn } from "#/utils/utils"; import { FileItem } from "./file-item"; interface FileListProps { files: string[]; onRemove?: (index: number) => void; } export function FileList({ files, onRemove }: FileListProps) { return (
{files.map((f, index) => ( onRemove?.(index) : undefined} /> ))}
); }