feat: vidstack
This commit is contained in:
1 parent
184ee26e5b
commit
c31058c4f7
22 files changed
+419
-191
No files matched your search
@@ -9,7 +9,12 @@ const ThemeToggle = () => {
|
||||
const [theme, setTheme] = useTheme();
|
||||
|
||||
return (
|
||||
<Button variant='ghost' size='icon' onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}>
|
||||
<Button
|
||||
variant='ghost'
|
||||
size='icon'
|
||||
onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}
|
||||
title={`Set ${theme === 'dark' ? 'light' : 'dark'} theme`}
|
||||
>
|
||||
{theme === 'light' ? <Moon size={19} /> : <Sun size={19} />}
|
||||
</Button>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user