import { atom } from "jotai"; export const generationsAtom = atom([]); function getOrCreateSeed(): string { const hash = window.location.hash.replace(/^#/, ""); if (hash) return hash; const seed = crypto.randomUUID().replace(/-/g, ""); window.location.hash = seed; return seed; } export const seedAtom = atom(getOrCreateSeed());