Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516import { 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<string>(getOrCreateSeed());