1 | import { Omit, ToUppyProps } from './CommonTypes'
|
2 | import Dashboard = require('@uppy/dashboard')
|
3 |
|
4 | // This type is mapped into `DashboardProps` below so IntelliSense doesn't display this big mess of nested types
|
5 | type DashboardPropsInner = Omit<
|
6 | ToUppyProps<Dashboard.DashboardOptions>,
|
7 | // Remove the modal-only props
|
8 | 'animateOpenClose' | 'browserBackButtonClose' | 'inline' | 'onRequestCloseModal' | 'trigger'
|
9 | >
|
10 |
|
11 | export type DashboardProps = {
|
12 | [K in keyof DashboardPropsInner]: DashboardPropsInner[K]
|
13 | }
|
14 |
|
15 | /**
|
16 | * React Component that renders a Dashboard for an Uppy instance. This component
|
17 | * renders the Dashboard inline so you can put it anywhere you want.
|
18 | */
|
19 | declare const DashboardComponent: React.ComponentType<DashboardProps>
|
20 | export default DashboardComponent
|