import React from 'react';

interface SvgTextLogoProps {
  text: string;
  fontSize?: number;
  fontWeight?: number | string;
  letterSpacing?: number;
  fill?: string;
  className?: string;
  [key: string]: any;
}

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  fontSize = 32,
  fontWeight = 700,
  letterSpacing = 2,
  fill = '#000000',
  className = '',
  ...rest
}) => {
  return (
    <svg
      viewBox={`0 0 ${text.length * fontSize} ${fontSize * 1.5}`}
      xmlns="http://www.w3.org/2000/svg"
      className={className}
      {...rest}
    >
      <text
        x="0"
        y={fontSize}
        fontSize={fontSize}
        fontWeight={fontWeight}
        letterSpacing={letterSpacing}
        fill={fill}
        dominantBaseline="middle"
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;