import { COL_CUSTOMERS } from '@/constants';
import { pb } from '@/lib/pb';

export default async function GetActiveCount(): Promise<number> {
  const { totalItems: count } = await pb.collection(COL_CUSTOMERS).getList(1, 1, {
    filter: 'status = "active"',
  });
  return count;
}
