(props: WidgetCardProps)
| 8 | } |
| 9 | |
| 10 | export const WidgetCard = (props: WidgetCardProps): ReactElement => { |
| 11 | const { heading, className, children, ...attrs } = props; |
| 12 | return ( |
| 13 | <section |
| 14 | className={classNames( |
| 15 | 'flex flex-col rounded-16 border border-border-subtlest-tertiary', |
| 16 | className, |
| 17 | )} |
| 18 | {...attrs} |
| 19 | > |
| 20 | <header className="border-b border-b-border-subtlest-tertiary"> |
| 21 | <h4 className="my-0.5 px-4 py-3 text-text-tertiary typo-body"> |
| 22 | {heading} |
| 23 | </h4> |
| 24 | </header> |
| 25 | <div className="px-4 py-4">{children}</div> |
| 26 | </section> |
| 27 | ); |
| 28 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected