import React from 'react';

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

export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className = '',
  fontSize = '24',
  fontWeight = 'bold',
  fontFamily = 'Arial, sans-serif',
  letterSpacing = '0',
  textAnchor = 'middle',
  dominantBaseline = 'middle',
}) => {
  return (
    <svg
      viewBox="0 0 300 100"
      className={className}
      xmlns="http://www.w3.org/2000/svg"
    >
      <text
        x="50%"
        y="50%"
        fontSize={fontSize}
        fontWeight={fontWeight}
        fontFamily={fontFamily}
        letterSpacing={letterSpacing}
        textAnchor={textAnchor}
        dominantBaseline={dominantBaseline}
        fill="currentColor"
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;