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

Function toggleTheme

src/pages/Home.tsx:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 }, [theme]);
30
31 const toggleTheme = () => {
32 setTheme(prev => prev === 'light' ? 'dark' : 'light');
33 };
34
35 const convertToWebP = useCallback(async (file: File): Promise<ConvertedImage> => {
36 const img = document.createElement('img');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected