MCPcopy Create free account
hub / github.com/dfinity/orbit / useRequestStatusItems

Function useRequestStatusItems

apps/wallet/src/composables/request.composable.ts:240–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238export type RequestStatusSelectItem = { key: RequestStatusEnum; text: string };
239
240export const useRequestStatusItems = (): ComputedRef<RequestStatusSelectItem[]> =>
241 computed(() =>
242 Object.values(RequestStatusEnum).map(status => ({
243 key: status,
244 text: i18n.global.t(`requests.status.${status.toLowerCase()}`),
245 })),
246 );
247
248export const useAvailableORequestSpecifiers = (): SelectItem[] => {
249 const i18n = useI18n();

Callers 1

Calls 2

mapMethod · 0.80
valuesMethod · 0.80

Tested by

no test coverage detected