mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
15 lines
353 B
JavaScript
15 lines
353 B
JavaScript
import React, { Suspense } from 'react';
|
|
import { Spinner, Classes } from '@blueprintjs/core';
|
|
|
|
function LoadingContent() {
|
|
return (
|
|
<div className={Classes.DRAWER_BODY}>
|
|
<Spinner size={30} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default function DrawerSuspense({ children }) {
|
|
return <Suspense fallback={<LoadingContent />}>{children}</Suspense>;
|
|
}
|