1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-18 10:26:04 +01:00
upscayl/renderer/atoms/newsAtom.ts
2023-11-26 13:34:03 +05:30

6 lines
247 B
TypeScript

import { GrayMatterFile } from "gray-matter";
import { atomWithStorage } from "jotai/utils";
export const showNewsModalAtom = atomWithStorage("showNewsModal", false);
export const newsAtom = atomWithStorage<GrayMatterFile<string>>("news", null);