mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
feat: add theme manager
awesome!
This commit is contained in:
5
inertia/hooks/use_dark_theme.tsx
Normal file
5
inertia/hooks/use_dark_theme.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { useContext } from 'react';
|
||||
import { DarkThemeContext } from '~/contexts/dark_theme_context';
|
||||
|
||||
const useDarkTheme = () => useContext(DarkThemeContext);
|
||||
export default useDarkTheme;
|
||||
Reference in New Issue
Block a user