import dynamic from 'next/dynamic';
import type { JobMapProps } from './types';

// Provider dispatcher. Google is the only implementation for now; an Esri
// implementation would be selected here (e.g. via NEXT_PUBLIC_MAP_PROVIDER).
const GoogleJobMap = dynamic(() => import('./google/GoogleJobMap'), { ssr: false });

export default function JobMap(props: JobMapProps) {
  return <GoogleJobMap {...props} />;
}
