import { delay } from './api';
import { mockCustomers } from '@/data/mockCustomers';

export const customersService = {
  list: (storeId: string) =>
    delay(mockCustomers.filter((c) => c.storeId === storeId)),
  getById: (storeId: string, id: string) =>
    delay(mockCustomers.find((c) => c.storeId === storeId && c.id === id) ?? null),
};
