import { QueryParams } from 'src/utils/files';

export const filesKeys = {
  all: () => ['files'],
  allDetail: () => [...filesKeys.all(), 'detail'],
  detail: (id: number | undefined, params: QueryParams) => [
    ...filesKeys.allDetail(),
    id,
    params,
  ],
  allTree: () => [...filesKeys.all(), 'tree'],
  tree: (id: number | string) => [...filesKeys.allTree(), Number(id)],
};
