import Image from 'next/future/image'; import { useTheme } from 'next-themes'; export default function ImageWithTheme(props) { const { theme } = useTheme(); return ( {props.alt} ); }