| 123456789101112131415161718192021222324252627 |
- import { useTheme } from "next-themes";
- import { Image } from "@heroui/react";
- const MiniPic = () => {
- const { theme } = useTheme();
- const isDark = theme === "dark";
- return (
- <div>
- {isDark ? (
- <Image
- alt="cover"
- className="rounded-b-none object-cover"
- src="mini-dark.jpg"
- />
- ) : (
- <Image
- alt="cover"
- className="rounded-b-none object-cover"
- src="mini-light.jpg"
- />
- )}
- </div>
- );
- };
- export default MiniPic;
|