File size: 368 Bytes
65567a2
 
2f65818
65567a2
 
 
 
 
 
 
91e9e61
65567a2
 
2f65818
6c2bcb4
65567a2
 
91e9e61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { atomWithStorage } from "jotai/utils";

import { baseGame } from "@/constants/baseGame";

export const answersAtom = atomWithStorage<
	{
		id: string;
		content: string;
		task: string;
	}[]
>("2DGameCreator", [
	{
		id: "1",
		content: baseGame.default,
		task: "Base Game",
	},
]);
export const showCodeAtom = atomWithStorage("2DGameCreator-editor", false);