msgba-web/js-src/components/canvas-gba-emulator.tsx

12 lines
383 B
TypeScript
Raw Normal View History

import * as React from 'react'
2023-03-22 13:53:16 +01:00
import { MIN_WIDTH_GBA, MIN_HEIGHT_GBA } from '@msgba/constants'
2023-03-22 13:53:16 +01:00
export interface CanvasGBAEmulatorProps {
canvasRef: React.RefObject<HTMLCanvasElement>
}
export default function CanvasGBAEmulator (props: CanvasGBAEmulatorProps): JSX.Element {
return (<canvas ref={props.canvasRef} width={MIN_WIDTH_GBA} height={MIN_HEIGHT_GBA}></canvas>)
2023-03-22 13:53:16 +01:00
}