import * as React from "react";
import { forwardRef } from "react";
import { Button, useColorMode } from "@chakra-ui/core";
const Sun = ({ color, size = "1.5rem", ...props }) => (
);
const Moon = ({ color, size = "1.5rem", ...props }) => (
);
const iconMap = { dark: Moon, light: Sun };
const outlineColor = { dark: "primary.300", light: "primary.600" };
export const ColorModeToggle = forwardRef((props, ref) => {
const { colorMode, toggleColorMode } = useColorMode();
const Icon = iconMap[colorMode];
const label = `Switch to ${colorMode === "light" ? "dark" : "light"} mode`;
return (
);
});