toby/resources/js/Composables/errorInfo.js
EwelinaLasowy 4513b49423 #93 - wip
2022-03-24 12:26:12 +01:00

17 lines
282 B
JavaScript

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,
}
}