Skip to content

armgit / pdfcn

Public Imported from GitHub
0

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

337 B
Raw Blame
import { useAtom } from "jotai";
import { atomWithStorage } from "jotai/utils";

export type InstallationType = "cli" | "manual";

export interface Config {
  installationType: InstallationType;
}

const configAtom = atomWithStorage<Config>("config", {
  installationType: "cli",
});

export const useConfig = () => useAtom(configAtom);