import api from "src/api";

export const getFranchisorDashboard = async (unitIds = []) => {
  const { data } = await api.get("/franchisor-dashboard/overview", {
    params: unitIds.length ? { unit_ids: unitIds } : {},
  });
  return data.payload;
};
