UNPKG

@medalsocial/meda

Version:

Shared Meda UI shell and runtime package.

7 lines (6 loc) 490 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { cx } from './utils.js'; export function MarketingHeaderLogo({ mark, word, href = '/', label, className, }) { const accessibleName = label ?? (typeof word === 'string' ? word : undefined) ?? 'Home'; return (_jsxs("a", { href: href, "aria-label": accessibleName, className: cx('flex items-center gap-2 font-semibold tracking-tight', className), children: [mark, word && _jsx("span", { children: word })] })); }