import React from 'react';

interface SvgTextLogoProps {
  text: string;
  className?: string;
  textClassName?: string;
  dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical';
}

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className = '',
  textClassName = '',
  dominantBaseline = 'middle',
}) => {
  return (
    <svg
      viewBox="0 0 200 60"
      xmlns="http://www.w3.org/2000/svg"
      className={`w-32 h-auto ${className}`}
      aria-label={`${text} logo`}
    >
      <text
        x="50%"
        y="50%"
        textAnchor="middle"
        dominantBaseline={dominantBaseline}
        className={`text-lg font-bold fill-current ${textClassName}`}
        style={{
          fontSize: '24px',
          fontWeight: 'bold',
        }}
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;