Files
nini-naderi/src/components/Placeholder.tsx
T
Alireza HassaniandCursor 39d85512c5 Add replaceable images, category mega menu, and contact pages.
Give every placeholder a real img src, add FAQ and contact sections, and put categories first in the header.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 14:18:47 +03:30

30 lines
494 B
TypeScript

type Props = {
src: string;
alt?: string;
width: number;
height: number;
className?: string;
rounded?: string;
fill?: boolean;
};
export function Placeholder({
src,
alt = "",
width,
height,
className = "",
rounded = "rounded-2xl",
fill = false,
}: Props) {
return (
<img
src={src}
alt={alt}
width={width}
height={height}
className={`block w-full object-cover ${fill ? "h-full" : "h-auto"} ${rounded} ${className}`}
/>
);
}