Files
dda7ffd3-383e-4b56-a3db-6f1…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

35 lines
634 B
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
textClassName?: string;
}
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
textClassName = '',
}) => {
return (
<svg
viewBox="0 0 300 100"
className={className}
preserveAspectRatio="xMidYMid meet"
>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className={textClassName}
fontSize="48"
fontWeight="bold"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;