import ElectionMapTooltip from "../../ElectionMapTooltip/index.js";
const NationalMapTooltip = function NationalMapTooltip(props) {
  const {
    code,
    colors
  } = props;
  const config = colors.fipsToPalette.get(code);
  if (!config) return null;
  return <ElectionMapTooltip config={config} />;
};
export default NationalMapTooltip;