interface PlaceholderImageProps {
  width?: number;
  height?: number;
  text?: string;
  className?: string;
}

export default function PlaceholderImage({
  width = 800,
  height = 1000,
  text = 'Product Image',
  className = '',
}: PlaceholderImageProps) {
  return (
    <div
      className={`bg-gray-200 flex items-center justify-center ${className}`}
      style={{ width, height }}
    >
      <svg
        width={width}
        height={height}
        className="text-gray-400"
        xmlns="http://www.w3.org/2000/svg"
      >
        <rect width="100%" height="100%" fill="#e5e7eb" />
        <text
          x="50%"
          y="50%"
          textAnchor="middle"
          dominantBaseline="middle"
          className="text-gray-500 text-sm font-medium"
          fill="#9ca3af"
        >
          {text}
        </text>
      </svg>
    </div>
  );
}

