import React from 'react';

interface SvgTextLogoProps {
  text: string;
  className?: string;
  width?: number | string;
  height?: number | string;
  fontSize?: number;
  fontWeight?: number | string;
  fill?: string;
  dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'central' | 'ideographic' | 'mathematical';
}

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className = '',
  width = 300,
  height = 100,
  fontSize = 40,
  fontWeight = 'bold',
  fill = 'currentColor',
  dominantBaseline = 'middle',
}) => {
  return (
    <svg
      width={width}
      height={height}
      viewBox={`0 0 ${width} ${height}`}
      className={className}
      xmlns="http://www.w3.org/2000/svg"
    >
      <text
        x="50%"
        y="50%"
        textAnchor="middle"
        dominantBaseline={dominantBaseline}
        fontSize={fontSize}
        fontWeight={fontWeight}
        fill={fill}
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;
