34 lines
588 B
TypeScript
34 lines
588 B
TypeScript
import React from "react";
|
|
|
|
interface SvgTextLogoProps {
|
|
text: string;
|
|
className?: string;
|
|
fontSize?: number;
|
|
}
|
|
|
|
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
|
text,
|
|
className = "", fontSize = 32,
|
|
}) => {
|
|
return (
|
|
<svg
|
|
viewBox={`0 0 ${text.length * 20} 50`}
|
|
className={className}
|
|
aria-label={text}
|
|
>
|
|
<text
|
|
x="50%"
|
|
y="50%"
|
|
dominantBaseline="middle"
|
|
textAnchor="middle"
|
|
fontSize={fontSize}
|
|
fontWeight="bold"
|
|
>
|
|
{text}
|
|
</text>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default SvgTextLogo;
|