({
type = 'default',
children,
...props
})
| 7 | } & HTMLAttributes<HTMLElement>; |
| 8 | |
| 9 | const Banner: FC<PropsWithChildren<BannerProps>> = ({ |
| 10 | type = 'default', |
| 11 | children, |
| 12 | ...props |
| 13 | }) => ( |
| 14 | <section |
| 15 | className={`${styles.banner} ${styles[type] || styles.default}`} |
| 16 | {...props} |
| 17 | > |
| 18 | {children} |
| 19 | </section> |
| 20 | ); |
| 21 | |
| 22 | export default Banner; |
nothing calls this directly
no outgoing calls
no test coverage detected