import { canDrawNavigation } from '@/logic/featureFlags' ; import { MapIconRendererParameters , MapRendererParameters } from './useMinimapRenderer' ; export default function drawMapNavigationTarget ( params , iconParams , target ) { if ( ! canDrawNavigation ) { return ; } if ( ! target ) { return ; } const { context : ctx , } = params ; const { mapIconsCache , } = iconParams ; const icon = mapIconsCache . getIcon ( 'nav' , 'nav' ) ; if ( icon ) { ctx . drawImage ( icon , target . x - icon . width / 2 , target . y - icon . height ) ; } }