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

Function durationUnitOptions

frontend/src/lib/utils/form.tsx:6–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export const categoryOptions = (categories: Category[]) => categories.map(cat => ({ value: cat.id, label: cat.name }));
5export const weightUnitOptions = () => Object.values(WeightUnit).map(unit => ({ value: unit, label: unit }));
6export const durationUnitOptions = () => Object.values(DurationUnit).map(unit => ({ value: unit, label: unit }));
7export const genderOptions = () => Object.values(Gender).map(unit => ({ value: unit, label: getGenderName(unit) }));

Callers 1

PackFormFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected