R-Kentaren's picture
Upload folder using huggingface_hub
4efde5d verified
import { createQueryKeys } from '@/hooks/use-query';
const sandboxKeysBase = ['sandbox'] as const;
const healthKeysBase = ['health'] as const;
export const sandboxKeys = createQueryKeys({
all: sandboxKeysBase,
files: (sandboxId: string, path: string) => [...sandboxKeysBase, sandboxId, 'files', path] as const,
fileContent: (sandboxId: string, path: string) => [...sandboxKeysBase, sandboxId, 'content', path] as const,
});
export const healthKeys = createQueryKeys({
all: healthKeysBase,
api: () => [...healthKeysBase, 'api'] as const,
});