silverwolf-x's picture
download
raw
484 Bytes
import { useColorMode, IconButton } from "@chakra-ui/react";
import { SunIcon, MoonIcon } from "@chakra-ui/icons";
export const DarkModeSwitch = () => {
const { colorMode, toggleColorMode } = useColorMode();
const isDark = colorMode === "dark";
return (
<IconButton
position="fixed"
top={4}
right={4}
icon={isDark ? <SunIcon /> : <MoonIcon />}
aria-label="Toggle Theme"
colorScheme="green"
onClick={toggleColorMode}
/>
);
};

Xet Storage Details

Size:
484 Bytes
·
Xet hash:
308bae654ec541dc4d8d6a4fb60a7e1321ed2311b7c9c2ffa336b4b84556d9fe

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.