This commit is contained in:
Adrian Hopek
2022-03-03 10:52:05 +01:00
parent c21d2c8663
commit fdafb76461
7 changed files with 505 additions and 5 deletions

View File

@@ -123,6 +123,12 @@ const statuses = [
},
]
export function useStatusInfo(status) {
return statuses.find(statusInfo => statusInfo.value === status)
export function useStatusInfo() {
const getStatues = () => statuses
const findStatus = value => statuses.find(month => month.value === value)
return {
getStatues,
findStatus,
}
}