import React from "react"; import { useColorMode, useColorModeValue, IconButton } from "@chakra-ui/react"; import { AnimatePresence, motion } from "framer-motion"; import { IoMoon, IoSunnyOutline } from "react-icons/io5"; const Index = () => { const { colorMode, toggleColorMode } = useColorMode(); const iconChange = useColorModeValue(, ); const keyChange = useColorModeValue("light", "dark"); function toggleTheme() { toggleColorMode(); } return ( ); }; export default Index;