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

Function metadata

frontend/src/app/components/PackList/PackItem.tsx:20–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 const { id, title } = pack;
19
20 const metadata = () => {
21 const { duration, duration_unit, season, itemCount } = pack;
22 const durationDisplay = !!duration && <div>{duration} {duration_unit}</div>;
23 const seasonDisplay = !!season && <div>{season}</div>;
24 return (
25 <Metadata>
26 <div>{itemCount} Items</div>
27 {durationDisplay}
28 {seasonDisplay}
29 </Metadata>
30 )
31 };
32
33 const handleDelete = () => {
34 if (deletePack) {

Callers 1

PackItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected