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