import { useTheme } from "next-themes"; import { Image } from "@heroui/react"; interface MiniPicProps { onClick?: () => void; showOverlay?: boolean; } const MiniPic = ({ onClick, showOverlay = false }: MiniPicProps) => { const { theme } = useTheme(); const isDark = theme === "dark"; return (
{isDark ? ( cover ) : ( cover )} {showOverlay && (
Click for 3D
)}
); }; export default MiniPic;