import { Box, Stack, Text } from "@chakra-ui/react"; import "./ImageCardContent.module.css" import screenfull from "screenfull"; import Image from "next/image"; export default function ImageCardContent(props: { style: any resourcePath: string resourceCaption: string }) { return ( <> openFullScreen('resource-image')} id='resource-image' alt='' src={props.resourcePath} /> {props.resourceCaption} ) }; const openFullScreen = (imageId: string) => { if (screenfull.isEnabled) { screenfull.request(document.getElementById(imageId)!); } }