Web UX for the exporter
This commit is contained in:
11
packages/web/lib/networking/useCreateExport.tsx
Normal file
11
packages/web/lib/networking/useCreateExport.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import { apiFetcher } from './networkHelpers'
|
||||
|
||||
export const createExport = async (): Promise<boolean> => {
|
||||
try {
|
||||
const response = await apiFetcher(`/api/export/`)
|
||||
return true
|
||||
} catch (error) {
|
||||
console.log('error scheduling export. ')
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user