diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..eb89d41 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,46 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React from "react"; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text: string; className?: string; + svgClassName?: string; + textClassName?: string; + strokeWidth?: number; + fontSize?: number; + fontFamily?: string; + textAnchor?: "start" | "middle" | "end"; + dominantBaseline?: "auto" | "baseline" | "text-bottom" | "alphabetic" | "ideographic" | "mathematical" | "central" | "hanging" | "text-top"; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text, + className = "", svgClassName = "", textClassName = "", strokeWidth = 1, + fontSize = 48, + fontFamily = "Arial, sans-serif", textAnchor = "middle", dominantBaseline = "central"}) => { return ( - - + - {logoText} - - + + {text} + + + ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file