MCPcopy Create free account
hub / github.com/IamIsPra/tinywebp / toggleTheme

Function toggleTheme

src/pages/Terms.tsx:16–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }, [theme]);
15
16 const toggleTheme = () => {
17 setTheme(prev => prev === 'light' ? 'dark' : 'light');
18 };
19
20 return (
21 <div className="min-h-screen bg-gradient-to-b from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800 flex flex-col">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected