2023-11-03 08:37:27 -04:00
|
|
|
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(
|
2023-11-14 12:13:58 -05:00
|
|
|
"h-full rounded-xl bg-background object-cover object-center",
|
2023-11-03 08:37:27 -04:00
|
|
|
)}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|