(props)
| 22 | }; |
| 23 | |
| 24 | function CloseButton(props) { |
| 25 | const { className, cssModule, variant, innerRef, ...attributes } = props; |
| 26 | |
| 27 | const classes = mapToCssModules( |
| 28 | classNames(className, 'btn-close', variant && `btn-close-${variant}`), |
| 29 | ); |
| 30 | |
| 31 | return ( |
| 32 | <button |
| 33 | ref={innerRef} |
| 34 | type="button" |
| 35 | className={classes} |
| 36 | {...{ 'aria-label': 'close', ...attributes }} |
| 37 | /> |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | CloseButton.propTypes = propTypes; |
| 42 |
nothing calls this directly
no test coverage detected
searching dependent graphs…