14 lines
563 B
TypeScript
14 lines
563 B
TypeScript
import AppContainer from "components/apps/AppContainer";
|
|
import StyledDXBall from "components/apps/DX-Ball/StyledDXBall";
|
|
import useDXBall from "components/apps/DX-Ball/useDXBall";
|
|
import type { ComponentProcessProps } from "components/system/Apps/RenderComponent";
|
|
import { haltEvent } from "utils/functions";
|
|
|
|
const DXBall: FC<ComponentProcessProps> = ({ id }) => (
|
|
<AppContainer StyledComponent={StyledDXBall} id={id} useHook={useDXBall}>
|
|
<canvas id="dx-ball" onContextMenuCapture={haltEvent} />
|
|
</AppContainer>
|
|
);
|
|
|
|
export default DXBall;
|