Files
7fb18710-bfec-4fe1-bd2e-b3c…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

39 lines
695 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
width?: number;
height?: number;
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
width = 200,
height = 100,
}) => {
return (
<svg
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
fontSize="24"
fontWeight="bold"
fill="currentColor"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;