import { useQuery } from '@tanstack/react-query';
import { FileRepository } from '@amityco/ts-sdk-react-native';
const useFile = fileId => {
  const {
    data
  } = useQuery({
    queryKey: ['asc-uikit', 'FileRepository', 'getFile', fileId],
    queryFn: () => FileRepository.getFile(fileId),
    enabled: !!fileId,
    select: response => response.data
  });
  return data;
};
export default useFile;
//# sourceMappingURL=useFile.js.map