import React, { SVGProps } from 'react';

interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
  text?: string;
  className?: string;
}

export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
  text = 'Webild',
  className = '',
  ...props
}) => {
  return (
    <svg
      viewBox="0 0 200 50"
      xmlns="http://www.w3.org/2000/svg"
      className={className}
      {...props}
    >
      <defs>
        <style>
          {`
            @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
          `}
        </style>
      </defs>
      <text
        x="50%"
        y="50%"
        dominantBaseline="middle"
        textAnchor="middle"
        fontFamily="Inter, sans-serif"
        fontSize="24"
        fontWeight="700"
        fill="currentColor"
      >
        {text}
      </text>
    </svg>
  );
};

export default SvgTextLogo;
