import React from 'react';

interface SvgTextLogoProps {
  text: string;
  className?: string;
  fontSize?: number;
  fontWeight?: number | string;
  letterSpacing?: number;
  dominantBaseline?: string;
  textAnchor?: string;
}

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className = '',
  fontSize = 48,
  fontWeight = 'bold',
  letterSpacing = 2,
  dominantBaseline = 'middle',
  textAnchor = 'middle',
}) => {
  return (
    <svg
      viewBox="0 0 1000 200"
      className={className}
      xmlns="http://www.w3.org/2000/svg"
      preserveAspectRatio="xMidYMid meet"
    >
      <text
        x="50%"
        y="50%"
        fontSize={fontSize}
        fontWeight={fontWeight}
        letterSpacing={letterSpacing}
        dominantBaseline={dominantBaseline}
        textAnchor={textAnchor}
        className="fill-current"
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;
