import React from 'react';

interface SvgTextLogoProps {
  text: string;
  className?: string;
  dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
}

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className = 'w-full h-full',
  dominantBaseline = 'middle',
}) => {
  return (
    <svg
      viewBox="0 0 800 200"
      className={className}
      preserveAspectRatio="xMidYMid meet"
      xmlns="http://www.w3.org/2000/svg"
    >
      <defs>
        <style>
          {`
            .logo-text {
              font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
                sans-serif;
              font-size: 120px;
              font-weight: 700;
              fill: currentColor;
              letter-spacing: -2px;
            }
          `}
        </style>
      </defs>
      <text
        x="50%"
        y="50%"
        textAnchor="middle"
        dominantBaseline="middle"
        className="logo-text"
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;