/*! ========================================================= * Argon Dashboard Chakra PRO - v1.0.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-chakra-pro * Copyright 2022 Creative Tim (https://www.creative-tim.com/) * Designed and Coded by Simmmple & Creative Tim ========================================================= * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */ // Chakra Imports // Chakra Imports import { Box, Button, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerHeader, Flex, Icon, Link, Switch, Text, useColorMode, useColorModeValue, } from "@chakra-ui/react"; import GitHubButton from "react-github-btn"; import { HSeparator } from "components/Separator/Separator"; import PropTypes from "prop-types"; import React, { useState } from "react"; import { FaTwitter, FaFacebook } from "react-icons/fa"; export default function Configurator(props) { const { sidebarVariant, setSidebarVariant, secondary, isOpen, onClose, fixed, ...rest } = props; const [switched, setSwitched] = useState(props.isChecked); const { colorMode, toggleColorMode } = useColorMode(); let bgButton = useColorModeValue( "linear-gradient(81.62deg, #313860 2.25%, #151928 79.87%)", "white" ); let colorButton = useColorModeValue("white", "gray.700"); const secondaryButtonBg = useColorModeValue("white", "transparent"); const secondaryButtonBorder = useColorModeValue("gray.700", "white"); const secondaryButtonColor = useColorModeValue("gray.700", "white"); const bgDrawer = useColorModeValue("white", "navy.800"); const settingsRef = React.useRef(); return ( <> Argon Chakra Configurator See your dashboard options. Navbar Fixed { if (switched === true) { props.onSwitch(false); setSwitched(false); } else { props.onSwitch(true); setSwitched(true); } }} /> Dark/Light Star Thank you for sharing! ); } Configurator.propTypes = { secondary: PropTypes.bool, isOpen: PropTypes.bool, onClose: PropTypes.func, fixed: PropTypes.bool, };