import { type GetPathsParams } from './types';

export const pathsKeys = {
  all: () => ['paths'],
  list: {
    all: () => [...pathsKeys.all(), 'list'],
    paginated: (pagination: GetPathsParams) => [
      ...pathsKeys.list.all(),
      pagination,
    ],
  },
  detail: {
    all: () => [...pathsKeys.all(), 'detail'],
    path: (pathId: number | undefined) => [...pathsKeys.detail.all(), pathId],
  },
};
