18 lines
612 B
TypeScript
18 lines
612 B
TypeScript
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;
|