Files
PodTui/src/components/ImportDialog.tsx
2026-02-04 00:06:16 -05:00

22 lines
526 B
TypeScript

const createSignal = <T,>(value: T): [() => T, (next: T) => void] => {
let current = value
return [() => current, (next) => {
current = next
}]
}
import { FilePicker } from "./FilePicker"
export function ImportDialog() {
const filePath = createSignal("")
return (
<box border title="Import" style={{ padding: 1, flexDirection: "column", gap: 1 }}>
<FilePicker value={filePath[0]()} onChange={filePath[1]} />
<box border>
<text>Import selected file</text>
</box>
</box>
)
}