mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-10 01:24:20 +02:00
16 lines
362 B
TypeScript
Executable File
16 lines
362 B
TypeScript
Executable File
import loadable from "@loadable/component"
|
|
|
|
import { Loading, ErrorBoundary } from "../../components"
|
|
import { Props, loadData } from "./Wish"
|
|
|
|
const Wish = loadable(() => import("./Wish"), {
|
|
fallback: <Loading />,
|
|
})
|
|
|
|
export default (props: Props): JSX.Element => (
|
|
<ErrorBoundary>
|
|
<Wish {...props} />
|
|
</ErrorBoundary>
|
|
)
|
|
export { loadData }
|