export const documentsRoutes = {
  documents: () => '/documents',
  folders: {
    detail: (folderId: number | string) =>
      `${documentsRoutes.documents()}/${folderId}`,
    files: {
      root: (folderId: number | string) =>
        `${documentsRoutes.folders.detail(folderId)}/files`,
      detail: (folderId: number | string, fileId: number | string) =>
        `${documentsRoutes.folders.files.root(folderId)}/${fileId}`,
    },
  },
  pending: {
    root: () => `${documentsRoutes.documents()}/pending`,
    files: {
      root: () => `${documentsRoutes.pending.root()}/files`,
      detail: (fileId: number | string) =>
        `${documentsRoutes.pending.files.root()}/${fileId}`,
    },
  },
};

export const documentsSkeletonRoutes = {
  documents: () => '/documents',
  folders: {
    root: () => `${documentsSkeletonRoutes.documents()}/folders`,
    detail: () => `${documentsSkeletonRoutes.folders.root()}/:folderId`,
    files: {
      root: () => `${documentsSkeletonRoutes.folders.detail()}/files`,
      detail: () => `${documentsSkeletonRoutes.folders.files.root()}/:fileId`,
    },
  },
  pending: {
    root: () => `${documentsSkeletonRoutes.documents()}/pending`,
    files: {
      root: () => `${documentsSkeletonRoutes.pending.root()}/files`,
      detail: () => `${documentsSkeletonRoutes.pending.files.root()}/:fileId`,
    },
  },
};
