@medalsocial/meda
Version:
Shared Meda UI shell and runtime package.
7 lines (6 loc) • 461 B
JavaScript
import { jsxs as _jsxs } from "react/jsx-runtime";
import { cx } from './utils.js';
export function MarketingAnnouncementBar({ href, icon, children, className, }) {
const Tag = href ? 'a' : 'span';
return (_jsxs(Tag, { ...(href ? { href } : {}), className: cx('inline-flex items-center gap-2 rounded-full border border-border/60 bg-card/50 px-4 py-1.5 text-xs font-medium text-foreground/80 backdrop-blur', className), children: [icon, children] }));
}