(group: ProductGroupT)
| 34 | } |
| 35 | |
| 36 | function icon(group: ProductGroupT) { |
| 37 | if (group.icon) { |
| 38 | return ( |
| 39 | <div className="pr-3"> |
| 40 | <img src={group.icon} alt={group.name} style={groupIcon}></img> |
| 41 | </div> |
| 42 | ) |
| 43 | } else if (group.octicon) { |
| 44 | const octicon: React.FunctionComponent = ( |
| 45 | Octicons as { [name: string]: React.FunctionComponent } |
| 46 | )[group.octicon] as React.FunctionComponent |
| 47 | |
| 48 | return ( |
| 49 | <div className="mr-2"> |
| 50 | {React.createElement(octicon, groupIcon as React.Attributes, null)} |
| 51 | </div> |
| 52 | ) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | return ( |
| 57 | <div className="d-flex flex-column col-12 col-sm-6 col-lg-4 pb-4"> |
no outgoing calls
no test coverage detected