import React from 'react';

interface SvgTextLogoProps {
  text: string;
  className?: string;
  dominantBaseline?: DominantBaseline;
}

type DominantBaseline =
  | 'auto'
  | 'baseline'
  | 'before-edge'
  | 'after-edge'
  | 'central'
  | 'middle'
  | 'mathematical'
  | 'text-after-edge'
  | 'text-before-edge';

export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  className,
  dominantBaseline = 'middle',
}) => {
  return (
    <svg
      viewBox="0 0 200 200"
      xmlns="http://www.w3.org/2000/svg"
      className={className}
    >
      <text
        x="100"
        y="100"
        textAnchor="middle"
        dominantBaseline={dominantBaseline}
        className="text-lg font-bold"
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;
