import React, { ReactNode } from "react";

interface SvgTextLogoProps {
  text: string;
  fontSize?: number;
  fontWeight?: number | string;
  fontFamily?: string;
  fill?: string;
  className?: string;
  children?: ReactNode;
}

const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text,
  fontSize = 48,
  fontWeight = 700,
  fontFamily = "system-ui, -apple-system, sans-serif",  fill = "currentColor",  className = "",  children,
}) => {
  return (
    <svg
      viewBox="0 0 200 60"
      className={className}
      xmlns="http://www.w3.org/2000/svg"
    >
      <text
        x="50%"
        y="50%"
        fontSize={fontSize}
        fontWeight={fontWeight}
        fontFamily={fontFamily}
        fill={fill}
        textAnchor="middle"
        dominantBaseline="middle"
      >
        {text}
      </text>
      {children}
    </svg>
  );
};

export default SvgTextLogo;
