feat: new directory dialog

repalces the new item table row
This commit is contained in:
2025-09-26 23:04:02 +00:00
parent ce2e3c4f26
commit 3dfcdd84cf
6 changed files with 119 additions and 119 deletions

View File

@@ -0,0 +1,15 @@
import { type PrimitiveAtom, useAtom } from "jotai"
export function WithAtom<Value>({
atom,
children,
}: {
atom: PrimitiveAtom<Value>
children: (
value: Value,
setValue: (value: Value) => void,
) => React.ReactNode
}) {
const [value, setValue] = useAtom(atom)
return children(value, setValue)
}