Files
stats/apps/public/components/figure.tsx
Carl-Gerhard Lindesvärd 58c4a6a741 add(public): new funnel article
2025-03-31 23:09:51 +02:00

23 lines
456 B
TypeScript

import Image from 'next/image';
export function Figure({
src,
alt,
caption,
}: { src: string; alt: string; caption: string }) {
return (
<figure className="-mx-4">
<Image
src={src}
alt={alt || caption}
width={1200}
height={800}
className="rounded-lg"
/>
<figcaption className="text-center text-sm text-muted-foreground mt-2">
{caption}
</figcaption>
</figure>
);
}