/** @jsx jsx */
import { jsx, useColorMode } from "theme-ui";
import Tooltip from "@material-ui/core/Tooltip";
import ScreenReader from "./ScreenReader";
import { useCallback } from "react";
// SVGs from https://github.com/feathericons/feather
const SVG = ({ children }) => (
);
const Sun = () => (
);
const Moon = () => (
);
const colorModeIcon = {
dark: Moon(),
light: Sun()
};
function ColorModeButton() {
const [colorMode, setColorMode] = useColorMode();
const toggleColorMode = useCallback(() => {
setColorMode(colorMode => (colorMode === "light" ? "dark" : "light"));
}, [setColorMode]);
return (
);
}
export default ColorModeButton;