import React from 'react';

interface SvgTextLogoProps {
  text: string;
  className?: string;
  fontSize?: number;
  fontFamily?: string;
  fontWeight?: number;
  letterSpacing?: number;
  dominantBaseline?: 'auto' | 'alphabetic' | 'hanging' | 'ideographic' | 'mathematical' | 'middle' | 'central' | 'text-before-edge' | 'text-after-edge' | 'inherit';
  textAnchor?: 'start' | 'middle' | 'end' | 'inherit';
}

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className = '',
  fontSize = 32,
  fontFamily = 'Arial, sans-serif',
  fontWeight = 700,
  letterSpacing = 0,
  dominantBaseline = 'middle',
  textAnchor = 'middle',
}) => {
  return (
    <svg
      viewBox="0 0 400 100"
      className={`w-full h-auto ${className}`}
      xmlns="http://www.w3.org/2000/svg"
    >
      <text
        x="50%"
        y="50%"
        fontSize={fontSize}
        fontFamily={fontFamily}
        fontWeight={fontWeight}
        letterSpacing={letterSpacing}
        dominantBaseline={dominantBaseline}
        textAnchor={textAnchor}
        fill="currentColor"
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;