import { base44 } from '@/api/base44Client';

/** Replaceable storage contract: upload returns hosted location plus requested portable destination. */
export const Base44FileStorageAdapter = {
  async upload(file, destination) {
    const { file_url } = await base44.integrations.Core.UploadFile({ file });
    return { location: file_url, destination, checksum: null, verified: false, storage: 'Base44 development storage' };
  },
};