Files
iplist/frontend/composables/useCookieTheme.ts
2025-07-02 20:40:13 +03:00

7 lines
146 B
TypeScript

export function useCookieTheme() {
const theme = useCookie<string>('theme');
if (!theme.value) theme.value = 'dark';
return theme;
}