12 lines
201 B
JavaScript
12 lines
201 B
JavaScript
|
export const successRequest = ({ onSuccess, file }) => {
|
||
|
setTimeout(() => {
|
||
|
onSuccess(null, file)
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export const errorRequest = ({ onError }) => {
|
||
|
setTimeout(() => {
|
||
|
onError()
|
||
|
})
|
||
|
}
|