'use client';

import { useEffect, useState } from "react";

//#region src/hooks/useIsDarkMode.ts
const useIsDarkMode = () => {
	const [isDarkMode, setIsDarkMode] = useState(false);
	useEffect(() => {
		setIsDarkMode(document.querySelector("html")?.getAttribute("data-theme") === "dark");
	}, []);
	return isDarkMode;
};

//#endregion
export { useIsDarkMode };
//# sourceMappingURL=useIsDarkMode.mjs.map