feat(wip): button to switch assets
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const CARDS_COOKIE_NAME = 'cards_type';
|
||||
const CARDS_DEFAULT_VALUE = 'heron';
|
||||
|
||||
export function getCardsType(): CookieRef<string | null | undefined> {
|
||||
const cookie = useCookie(CARDS_COOKIE_NAME)
|
||||
if (!cookie.value) {
|
||||
cookie.value = CARDS_DEFAULT_VALUE;
|
||||
}
|
||||
return cookie;
|
||||
}
|
||||
Reference in New Issue
Block a user