import { useState } from "react"; import { DirectoryBrowser } from "./directory-browser"; import { Button } from "./ui/button"; type Props = { value: string; onChange: (path: string) => void; label?: string; }; export const PathSelector = ({ value, onChange }: Props) => { const [showBrowser, setShowBrowser] = useState(false); if (showBrowser) { return (