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

Function durationValue

frontend/src/app/components/Statistics/index.tsx:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18const Statistics: React.FC<StatProps> = ({ pack }) => {
19 const { season, duration, duration_unit, gender, temp_range, id, title } = pack;
20 const durationValue = () => {
21 if (!duration) {
22 return null;
23 }
24 return `${duration} ${duration_unit}`;
25 };
26
27 const packUrl = `https://packstack.io${getPackPath(id, title)}`;
28

Callers 1

StatisticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected