Spaces:
Build error
Build error
File size: 634 Bytes
b59aa07 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import React from "react";
function TerminalTab() {
const Terminal = React.useMemo(
() => React.lazy(() => import("#/components/features/terminal/terminal")),
[],
);
return (
<div className="h-full flex flex-col">
<div className="flex-grow overflow-auto">
{/* Terminal uses some API that is not compatible in a server-environment. For this reason, we lazy load it to ensure
* that it loads only in the client-side. */}
<React.Suspense fallback={<div className="h-full" />}>
<Terminal />
</React.Suspense>
</div>
</div>
);
}
export default TerminalTab;
|