diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..eaf42c5 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,63 @@ -"use client"; +import React, { CSSProperties } from 'react'; -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; - -interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; +export interface SvgTextLogoProps { + text: string; + size?: 'small' | 'medium' | 'large'; + weight?: 'light' | 'normal' | 'bold'; + color?: string; className?: string; + style?: CSSProperties; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + size = 'medium', + weight = 'normal', + color = 'currentColor', + className = '', + style = {}, +}) => { + const sizes = { + small: { fontSize: '16px', height: '24px' }, + medium: { fontSize: '24px', height: '32px' }, + large: { fontSize: '32px', height: '48px' }, + }; + + const weights = { + light: 300, + normal: 400, + bold: 700, + }; + + const baselineOffset = '0.35em'; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;