2023-11-14 12:13:58 -05:00

25 lines
499 B
TypeScript

import Image from "next/image";
import { cn } from "@/lib/utils";
export default function ImageUrl({
url,
className,
}: {
url: string;
className?: string;
}) {
return (
<div className={cn("relative overflow-hidden rounded-xl", className)}>
<Image
alt="Image"
height="288"
width="288"
unoptimized
src={url}
className={cn(
"h-full rounded-xl bg-background object-cover object-center",
)}
/>
</div>
);
}