Files
436bc63f-7fc7-4a08-b259-b99…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

42 lines
749 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
textClassName?: string;
width?: number;
height?: number;
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
textClassName = '',
width = 200,
height = 60,
}) => {
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"
className={textClassName}
fontSize="24"
fontWeight="bold"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;