This commit is contained in:
2026-02-04 00:06:16 -05:00
parent f08afb2ed1
commit 7b5c256e07
38 changed files with 933 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
import { detectFormat } from "../utils/file-detector"
type FilePickerProps = {
value: string
onChange: (value: string) => void
}
export function FilePicker(props: FilePickerProps) {
const format = detectFormat(props.value)
return (
<box style={{ flexDirection: "column", gap: 1 }}>
<input
value={props.value}
onInput={props.onChange}
placeholder="/path/to/sync-file.json"
style={{ width: 40 }}
/>
<text>Format: {format}</text>
</box>
)
}