2023-03-29 16:40:50 +02:00
|
|
|
import * as React from 'react'
|
2023-03-22 13:53:16 +01:00
|
|
|
|
2023-03-29 16:40:50 +02: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>
|
|
|
|
}
|
|
|
|
|
2023-03-29 16:40:50 +02:00
|
|
|
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
|
|
|
}
|