mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +01:00
13 lines
245 B
TypeScript
13 lines
245 B
TypeScript
'use client';
|
|
|
|
import { useEffect } from 'react';
|
|
|
|
export function useSystemThemeFallback() {
|
|
useEffect(() => {
|
|
const theme = localStorage.getItem('theme');
|
|
if (theme === 'auto') {
|
|
localStorage.setItem('theme', 'system');
|
|
}
|
|
}, []);
|
|
}
|