import React from 'react';

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

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  fontSize = 48,
  fontFamily = 'Arial',
  fontWeight = 'bold',
  fill = '#000000',
  className = '',
  dominantBaseline = 'middle',
}) => {
  return (
    <svg
      viewBox="0 0 500 100"
      xmlns="http://www.w3.org/2000/svg"
      className={className}
      role="img"
      aria-label={text}
    >
      <text
        x="50%"
        y="50%"
        textAnchor="middle"
        dominantBaseline={dominantBaseline}
        fontSize={fontSize}
        fontFamily={fontFamily}
        fontWeight={fontWeight}
        fill={fill}
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;
