mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-12 16:39:35 +03:00
feat: new frontend
This commit is contained in:
6
frontend/composables/useCookieTheme.ts
Normal file
6
frontend/composables/useCookieTheme.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function useCookieTheme() {
|
||||
const theme = useCookie<string>('theme');
|
||||
if (!theme.value) theme.value = 'dark';
|
||||
|
||||
return theme;
|
||||
}
|
Reference in New Issue
Block a user