securityos/components/apps/SpaceCadet/index.tsx

18 lines
612 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import AppContainer from "components/apps/AppContainer";
import StyledSpaceCadet from "components/apps/SpaceCadet/StyledSpaceCadet";
import useSpaceCadet from "components/apps/SpaceCadet/useSpaceCadet";
import type { ComponentProcessProps } from "components/system/Apps/RenderComponent";
import { haltEvent } from "utils/functions";
const SpaceCadet: FC<ComponentProcessProps> = ({ id }) => (
<AppContainer
StyledComponent={StyledSpaceCadet}
id={id}
useHook={useSpaceCadet}
>
<canvas id="canvas" onContextMenu={haltEvent} />
</AppContainer>
);
export default SpaceCadet;