import { api } from "../../listing/libs/utils/common";

export const getKanbanData = async (entity_type: string) => {
  try {
    const response = await api.get(`/lead/getlanes?entity_type=${entity_type}`);
    return response.data;
  } catch (error) {
    console.error("Failed to fetch action category:", error);
    throw error;
  }
};
