import type * as React from "react"; import * as DialogPrimitive from "@radix-ui/react-dialog"; import { cn } from "@/shared/lib/cn"; import { MODAL_BACKDROP_BLUR_CLASS } from "@/shared/ui/modalBackdrop"; export function SimpleImageLightbox({ alt, children, onOpenChange, open, src, }: { alt: string; children?: React.ReactNode; onOpenChange: (open: boolean) => void; open: boolean; src: string; }) { return ( event.preventDefault()} onPointerDownOutside={(event) => event.preventDefault()} > {alt} Full-size image preview. Press Escape or click outside the image to close. {children ?? ( {alt} )} ); }