MCPcopy Create free account
hub / github.com/Snapchat/dagger-browser / SubcomponentLink

Function SubcomponentLink

browser/src/components/SubcomponentLink.tsx:17–33  ·  view source on GitHub ↗
({
  subcomponentName,
  weight,
  onSelect
}: Props)

Source from the content-addressed store, hash-verified

15 }
16
17const 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
35export default SubcomponentLink;

Callers

nothing calls this directly

Calls 1

getDisplayNameFunction · 0.70

Tested by

no test coverage detected