diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 84dd184..d8a2d84 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -44,42 +44,26 @@ const AboutPage = () => { { { { diff --git a/src/app/collections/page.tsx b/src/app/collections/page.tsx index a1562b2..ceb2c76 100644 --- a/src/app/collections/page.tsx +++ b/src/app/collections/page.tsx @@ -43,44 +43,28 @@ const CollectionsPage = () => { { { diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..f8df3c0 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,44 @@ -"use client"; +import { SVGProps } from 'react'; -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; - -interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; - className?: string; +interface SvgTextLogoProps extends SVGProps { + text: string; + fontSize?: number; + fontWeight?: string | number; + letterSpacing?: number; + fill?: string; + fontFamily?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +export function SvgTextLogo({ + text, + fontSize = 48, + fontWeight = 'bold', + letterSpacing = 0, + fill = 'currentColor', + fontFamily = 'system-ui, -apple-system, sans-serif', + ...props +}: SvgTextLogoProps) { return ( - {logoText} + {text} ); -}); +} -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file