misc_pterodactyl-panel/resources/scripts/components/elements/SuspenseSpinner.tsx

11 lines
281 B
TypeScript
Raw Normal View History

import React, { Suspense } from 'react';
import Spinner from '@/components/elements/Spinner';
const SuspenseSpinner: React.FC = ({ children }) => (
<Suspense fallback={<Spinner size={'large'} centered/>}>
{children}
</Suspense>
);
2020-02-08 23:23:08 +00:00
export default SuspenseSpinner;