import React from 'react';

interface SvgTextLogoProps {
  text: string;
  className?: string;
  textStyle?: React.CSSProperties;
}

export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className = '',
  textStyle = {},
}) => {
  return (
    <svg
      className={className}
      viewBox={`0 0 ${text.length * 60} 120`}
      xmlns="http://www.w3.org/2000/svg"
      preserveAspectRatio="xMidYMid meet"
    >
      <text
        x="50%"
        y="50%"
        textAnchor="middle"
        dominantBaseline="middle"
        fontSize="48"
        fontWeight="bold"
        fill="currentColor"
        style={textStyle}
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;