UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
import { useAtom } from "jotai"
import { atomWithStorage } from "jotai/utils"
type Config = {
packageManager: "npm" | "yarn" | "pnpm" | "bun"
installationType: "cli" | "manual"
}
const configAtom = atomWithStorage<Config>("config", {
packageManager: "pnpm",
installationType: "cli",
})
export function useConfig() {
return useAtom(configAtom)
}