MCPcopy Create free account
hub / github.com/Packstack-Tech/packstack / itemDesc

Function itemDesc

frontend/src/app/Pack/Items.tsx:24–35  ·  view source on GitHub ↗
(url?: string, product_name?: string)

Source from the content-addressed store, hash-verified

22 const weightByCategory = getWeightByCategory(unit, items);
23
24 const itemDesc = (url?: string, product_name?: string) => {
25 if (product_name && !url) {
26 return product_name;
27 }
28
29 if (url) {
30 const linkLabel = product_name || 'view item';
31 return <a href={url} target="_blank">{linkLabel}</a>
32 }
33
34 return null;
35 };
36
37 return (
38 <ItemList>

Callers 1

ItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected