({ children, className, as: Component = 'div', ...restProps }: LeadPropsT)
| 9 | } |
| 10 | |
| 11 | export function Lead({ children, className, as: Component = 'div', ...restProps }: LeadPropsT) { |
| 12 | return ( |
| 13 | <Component |
| 14 | className={cx('f2 color-fg-muted mb-3', styles.container, className)} |
| 15 | {...restProps} |
| 16 | {...(typeof children === 'string' |
| 17 | ? { dangerouslySetInnerHTML: { __html: children } } |
| 18 | : { children })} |
| 19 | /> |
| 20 | ) |
| 21 | } |
nothing calls this directly
no outgoing calls
no test coverage detected