import { FC, memo } from "react"; import { useSession } from "@/contexts/session"; import StyledWallpaperImage from "./StyledWallpaperImage"; const Wallpaper: FC = () => { const { wallpaper } = useSession(); if (typeof wallpaper === 'object' && wallpaper !== null && wallpaper.type === "image") { return ; } return null; // Return null if the conditions are not met }; export default memo(Wallpaper);