import { X } from "lucide-react"; import { VolumeFileBrowser } from "~/client/components/file-browsers/volume-file-browser"; import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "~/client/components/ui/form"; import { Textarea } from "~/client/components/ui/textarea"; import type { Volume } from "~/client/lib/types"; import type { UseFormReturn } from "react-hook-form"; import type { InternalFormValues } from "./types"; type PathsSectionProps = { form: UseFormReturn; volume: Volume; selectedPaths: Set; onSelectionChange: (paths: Set) => void; onRemovePath: (path: string) => void; showAllSelectedPaths: boolean; onToggleShowAllPaths: () => void; }; export const PathsSection = ({ form, volume, selectedPaths, onSelectionChange, onRemovePath, showAllSelectedPaths, onToggleShowAllPaths, }: PathsSectionProps) => { return ( <> {selectedPaths.size > 0 && (

Selected paths:

{Array.from(selectedPaths) .slice(0, showAllSelectedPaths ? undefined : 20) .map((path) => ( {path} ))} {selectedPaths.size > 20 && ( )}
)} ( Additional include patterns