(title: string, onConfirm: () => void)
| 39 | } |
| 40 | |
| 41 | export const openConfirmationModal = (title: string, onConfirm: () => void) => |
| 42 | modals.openConfirmModal({ |
| 43 | title: "Confirmation", |
| 44 | onConfirm: onConfirm, |
| 45 | children: <Text size="sm">{title}</Text>, |
| 46 | labels: { confirm: "Confirm", cancel: "Cancel" }, |
| 47 | }); |
| 48 | |
| 49 | export const clientSideFileUpload = async (file: File, prefix: string) => { |
| 50 | const body = await file.arrayBuffer(); |
no outgoing calls
no test coverage detected