chore:little fixes and formating and linting and patches
This commit is contained in:
@@ -1,22 +1,27 @@
|
||||
import { cn } from '@/lib/utils';
|
||||
import Image from 'next/image';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
export function Figure({
|
||||
src,
|
||||
alt,
|
||||
caption,
|
||||
className,
|
||||
}: { src: string; alt: string; caption: string; className?: string }) {
|
||||
}: {
|
||||
src: string;
|
||||
alt: string;
|
||||
caption: string;
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<figure className={cn('-mx-4', className)}>
|
||||
<Image
|
||||
src={src}
|
||||
alt={alt || caption}
|
||||
width={1200}
|
||||
height={800}
|
||||
className="rounded-lg"
|
||||
height={800}
|
||||
src={src}
|
||||
width={1200}
|
||||
/>
|
||||
<figcaption className="text-center text-sm text-muted-foreground mt-2">
|
||||
<figcaption className="mt-2 text-center text-muted-foreground text-sm">
|
||||
{caption}
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
||||
Reference in New Issue
Block a user