import React from "react"; import { Flex, IconButton, useColorMode, useTheme } from "@chakra-ui/core"; import { motion } from "framer-motion"; const AnimatedFlex = motion.custom(Flex); export default () => { const theme = useTheme(); const { colorMode, toggleColorMode } = useColorMode(); const bg = { light: theme.colors.white, dark: theme.colors.black }; const icon = { light: "moon", dark: "sun" }; return ( ); };