import { Dialog, DialogContent } from "@/components/ui/dialog"; import { Badge } from "@/components/ui/badge"; import type { NormalizedPost } from "@/lib/grabber/sites"; export function Lightbox({ post, onClose }: { post: NormalizedPost | null; onClose: () => void }) { return ( !v && onClose()}> {post && (
{/\.(mp4|webm)$/i.test(post.fileUrl) ? (
#{post.id}
{post.rating && {post.rating}} {post.score !== undefined && ★ {post.score}}
{post.source && ( source )}
tags
{post.tags.map((t) => ( {t} ))}
)}
); }