({
subcomponentName,
weight,
onSelect
}: Props)
| 15 | } |
| 16 | |
| 17 | const SubcomponentLink: React.FC<Props> = ({ |
| 18 | subcomponentName, |
| 19 | weight, |
| 20 | onSelect |
| 21 | }: Props) => { |
| 22 | return (<div> |
| 23 | <div className="binding" onClick={() => onSelect && onSelect(subcomponentName)}> |
| 24 | <div className="text"> |
| 25 | {getDisplayName(subcomponentName)} |
| 26 | </div> |
| 27 | <div> |
| 28 | <NodeWeight weight={weight} /> |
| 29 | </div> |
| 30 | </div> |
| 31 | </div>); |
| 32 | |
| 33 | }; |
| 34 | |
| 35 | export default SubcomponentLink; |
nothing calls this directly
no test coverage detected