export function presentCompany(company: any) {
  return company
}

export function presentBrand(brand: any) {
  if (!brand) return brand
  const { amanpaySecretKey, amanpayMerchantId, paypalEmail, paypalMerchantId, ...safe } = brand
  return {
    ...safe,
    amanpayConfigured: !!(amanpayMerchantId && amanpaySecretKey),
    paypalConfigured:  !!(paypalEmail || paypalMerchantId),
  }
}
