mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
15 lines
326 B
TypeScript
15 lines
326 B
TypeScript
// @ts-nocheck
|
|
import React, { Suspense } from 'react';
|
|
import { DrawerLoading } from '@/components';
|
|
|
|
/**
|
|
* Loading content.
|
|
*/
|
|
function LoadingContent() {
|
|
return <DrawerLoading loading={true} />;
|
|
}
|
|
|
|
export function DrawerSuspense({ children }) {
|
|
return <Suspense fallback={<LoadingContent />}>{children}</Suspense>;
|
|
}
|