This commit is contained in:
EwelinaLasowy
2022-03-24 12:25:33 +01:00
parent 957b07b3eb
commit 4513b49423
3 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
const errors = [
{
'title': '404',
'description': 'Nie znaleziono strony',
},
]
export function useErrorInfo() {
const getErrors = () => errors
const findErrors = value => errors.find(error => error.value === value)
return {
getErrors,
findErrors,
}
}