11 lines
368 B
TypeScript
11 lines
368 B
TypeScript
import { DashboardLeadCountItem, DashboardLeadCountPayload } from '@interfaces';
|
|
import { api } from '@utils';
|
|
|
|
export const getDashboardLeadCountApi = async (
|
|
payload: DashboardLeadCountPayload,
|
|
): Promise<DashboardLeadCountItem[]> => {
|
|
return await api.get<DashboardLeadCountItem[]>(
|
|
`/api/lead_count_dashboard/${payload.action}/${payload.staffid}`,
|
|
);
|
|
};
|