initial layout

This commit is contained in:
Daniil
2026-01-19 23:19:58 +03:00
parent 749fda017c
commit 4688f65c5a
81 changed files with 4343 additions and 16 deletions
+13
View File
@@ -0,0 +1,13 @@
import Cookies from "js-cookie"
export const useCookie = (key: string, defaultValue: string | null = null) => {
const getCookie = Cookies.get(key) || defaultValue
const setCookie = (value: string) => Cookies.set(key, value)
const removeCookie = () => Cookies.remove(key)
return [getCookie, setCookie, removeCookie] as [
string | null,
(value: string) => void,
() => void,
]
}