import { colord, AnyColor } from 'colord'; import { Attributes, Lang } from '../../../types'; import { languages } from '../../../util/languages'; export const SimpleStringStart = ({ language, bgColor, textColor, footerString, footerLink, footerLinkTarget, disablePadding, }: Partial) => { const bgC = colord(bgColor as AnyColor); const textC = colord(textColor as AnyColor); const text = textC.isDark() ? textC.lighten(0.05) : textC.darken(0.05); return ( ); }; const Inner = ({ text, color, link, linkTarget, }: { text?: string; color: string; link?: string; linkTarget?: boolean; }) => { if (!link) return <>{text}; const style = { color, // attempt to reset the link to not inheret from theme textDecoration: 'none', fontWeight: 'normal', border: 'none', background: 'none', borderRadius: '0', padding: '0', margin: '0', }; if (linkTarget) { return ( {text} ); } return ( {text} ); };