mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-21 13:09:16 +00:00
docs: 📝 update docs
This commit is contained in:
3
packages/docs/src/components/core/DarkThemeLauncher.tsx
Normal file
3
packages/docs/src/components/core/DarkThemeLauncher.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export const DarkThemeLauncher = () => (
|
||||
<script>{`if(localStorage.theme==="dark"){document.documentElement.classList.add("dark");}else if(typeof localStorage.theme==="undefined"){if(window.matchMedia("(prefers-color-scheme: dark)").matches){document.documentElement.classList.add("dark");}}`}</script>
|
||||
)
|
||||
Reference in New Issue
Block a user