import { ImageComponentFullHeight } from "@components/image"; import { StackCard } from "@components/stack-card"; import { useSearchImageContext } from "@contexts/SearchImageContext"; import { useNavigate, useParams } from "@solidjs/router"; import { For, type Component } from "solid-js"; import SolidjsMarkdown from "solidjs-markdown"; export const ImagePage: Component = () => { const { imageId } = useParams<{ imageId: string }>(); const nav = useNavigate(); const { userImages, stacks, onDeleteImage } = useSearchImageContext(); const image = () => userImages().find((i) => i.ID === imageId); return (
{ onDeleteImage(id); nav("/"); }} />

Stacks

{(imageList) => ( l.ID === imageList.StackID)!} /> )}

Description

{image()?.Description}
); };