diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index 9baae73..d72a723 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,45 +1,52 @@ +import React from 'react'; import { SVGProps } from 'react'; -type DominantBaseline = 'auto' | 'before-edge' | 'hanging' | 'ideographic' | 'alphabetic' | 'central' | 'mathematical' | 'use-script' | 'no-change' | 'reset-size' | 'inherit'; - -interface SvgTextLogoProps extends SVGProps { +interface SvgTextLogoProps extends Omit, 'dominantBaseline'> { text?: string; fontSize?: number; fontWeight?: number | string; - fill?: string; - fontFamily?: string; - dominantBaseline?: DominantBaseline; + letterSpacing?: number; + dominantBaseline?: 'auto' | 'inherit' | 'alphabetic' | 'hanging' | 'ideographic' | 'mathematical' | 'text-before-edge' | 'middle' | 'central' | 'text-after-edge' | 'use-script' | 'no-change' | 'reset-size'; } -export default function SvgTextLogo({ - text = 'Logo', - fontSize = 32, - fontWeight = 'bold', - fill = 'currentColor', - fontFamily = 'system-ui, -apple-system, sans-serif', - dominantBaseline = 'central', - ...props -}: SvgTextLogoProps) { - return ( - - ( + ( + { + text = 'Logo', + fontSize = 32, + fontWeight = 700, + letterSpacing = 0, + dominantBaseline = 'middle', + className = '', + ...props + }, + ref, + ) => { + return ( + - {text} - - - ); -} + + {text} + + + ); + }, +); + +SvgTextLogo.displayName = 'SvgTextLogo'; + +export default SvgTextLogo;