#93 - wip
This commit is contained in:
16
resources/js/Composables/errorInfo.js
Normal file
16
resources/js/Composables/errorInfo.js
Normal 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,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user