import React from 'react'; interface SvgTextLogoProps { text: string; className?: string; dominantBaseline?: 'auto' | 'text-after-edge' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging'; fontSize?: number; fontWeight?: string | number; fill?: string; } const SvgTextLogo: React.FC = ({ text, className = '', dominantBaseline = 'middle', fontSize = 48, fontWeight = 'bold', fill = 'currentColor', }) => { const textRef = React.useRef(null); const svgRef = React.useRef(null); React.useEffect(() => { if (textRef.current && svgRef.current) { const bbox = textRef.current.getBBox(); svgRef.current.setAttribute('viewBox', `${bbox.x} ${bbox.y} ${bbox.width} ${bbox.height}`); } }, [text]); return ( {text} ); }; export default SvgTextLogo;