import React from 'react';

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

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className = '',
  width = 200,
  height = 100,
}) => {
  return (
    <svg
      width={width}
      height={height}
      viewBox={`0 0 ${width} ${height}`}
      className={className}
      xmlns="http://www.w3.org/2000/svg"
    >
      <defs>
        <linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="100%">
          <stop offset="0%" stopColor="#3b82f6" />
          <stop offset="100%" stopColor="#1e40af" />
        </linearGradient>
      </defs>
      <text
        x="50%"
        y="50%"
        textAnchor="middle"
        dominantBaseline="middle"
        fill="url(#textGradient)"
        fontSize="48"
        fontWeight="bold"
        fontFamily="Arial, sans-serif"
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;