(props)
| 26 | }; |
| 27 | |
| 28 | function Card(props) { |
| 29 | const { |
| 30 | className, |
| 31 | cssModule, |
| 32 | color, |
| 33 | body, |
| 34 | inverse, |
| 35 | outline, |
| 36 | tag: Tag = 'div', |
| 37 | innerRef, |
| 38 | ...attributes |
| 39 | } = props; |
| 40 | const classes = mapToCssModules( |
| 41 | classNames( |
| 42 | className, |
| 43 | 'card', |
| 44 | inverse ? 'text-white' : false, |
| 45 | body ? 'card-body' : false, |
| 46 | color ? `${outline ? 'border' : 'bg'}-${color}` : false, |
| 47 | ), |
| 48 | cssModule, |
| 49 | ); |
| 50 | |
| 51 | return <Tag {...attributes} className={classes} ref={innerRef} />; |
| 52 | } |
| 53 | |
| 54 | Card.propTypes = propTypes; |
| 55 |
nothing calls this directly
no test coverage detected
searching dependent graphs…