import { seriesApi } from '../series-api';

export const fetchSeriesData = async (token: string | null, regions: string) => {
  try {
    const response = await seriesApi.getSeries(token, regions);
    return response.data;
  } catch (error) {
    throw error;
  }
};

