import useSWR from 'swr' import { BASE_URL } from '../../constants' import { fetcher } from '../../http/axiosInstance' const RegionSelect = () => { const { data } = useSWR(`/gis/regions/borders`, (url) => fetcher(url, BASE_URL.nest), { revalidateOnFocus: false, revalidateIfStale: false }) return (
{Array.isArray(data) && {data.map((el, index) => ( ))} }
) } export default RegionSelect