import { useTheme } from "next-themes"; import { Image } from "@heroui/react"; const MiniPic = () => { const { theme } = useTheme(); const isDark = theme === "dark"; return (
{isDark ? ( cover ) : ( cover )}
); }; export default MiniPic;