import{r as a}from"./vendor-react-wBh_31cN.js";import{I as l}from"./index-BKr2rJhV.js";const c="chakra-ui-color-mode",d=e=>{document.documentElement.classList.toggle("dark",e==="dark")},i=()=>{const[e,r]=l(c,"light"),s=a.useCallback(t=>{let o;t==="system"?o=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":o=t==="dark"?"dark":"light",r(o),d(o)},[r]);return{colorMode:e,changeColorMode:s}};export{i as u};
