import { observer } from 'mobx-react-lite'; import type { ResourceDrop } from '../game/types'; import { LOG_SPRITE, MEAT_SPRITE, TWIG_SPRITE } from '../game/sprites'; import PixelSprite from './PixelSprite'; const DROP_SPRITES = { log: LOG_SPRITE, twig: TWIG_SPRITE, meat: MEAT_SPRITE }; const DROP_SIZES = { log: 20, twig: 18, meat: 18 }; const ResourceDropEntity = observer(function ResourceDropEntity({ drop }: { drop: ResourceDrop }) { return (