18 lines
600 B
TypeScript
18 lines
600 B
TypeScript
|
import AppContainer from "components/apps/AppContainer";
|
||
|
import StyledClassiCube from "components/apps/ClassiCube/StyledClassiCube";
|
||
|
import useClassiCube from "components/apps/ClassiCube/useClassiCube";
|
||
|
import type { ComponentProcessProps } from "components/system/Apps/RenderComponent";
|
||
|
import { haltEvent } from "utils/functions";
|
||
|
|
||
|
const ClassiCube: FC<ComponentProcessProps> = ({ id }) => (
|
||
|
<AppContainer
|
||
|
StyledComponent={StyledClassiCube}
|
||
|
id={id}
|
||
|
useHook={useClassiCube}
|
||
|
>
|
||
|
<canvas onContextMenu={haltEvent} />
|
||
|
</AppContainer>
|
||
|
);
|
||
|
|
||
|
export default ClassiCube;
|