import { observer } from 'mobx-react-lite'; import type { GameStore } from '../game/GameStore'; import type { Rabbit } from '../game/entities/Rabbit'; import { RABBIT_NIGHT_SPRITE, RABBIT_SPRITE } from '../game/sprites'; import HealthBar from './HealthBar'; import PixelSprite from './PixelSprite'; const RABBIT_SIZE = 30; const RabbitEntity = observer(function RabbitEntity({ rabbit, store }: { rabbit: Rabbit; store: GameStore }) { const size = store.isBloodMoon ? RABBIT_SIZE * 2 : RABBIT_SIZE; return (