export function presentBrand(company: {
  id: string; slug: string; name: string; phone: string | null; brand: any
}) {
  const brand = company.brand
  return {
    company: { id: company.id, slug: company.slug, name: company.name, phone: company.phone },
    brand: brand ? {
      displayName: brand.displayName,
      tagline: brand.tagline,
      logoUrl: brand.logoUrl,
      faviconUrl: brand.faviconUrl,
      heroImageUrl: brand.heroImageUrl,
      primaryColor: brand.primaryColor,
      accentColor: brand.accentColor,
      subdomain: brand.subdomain,
      customDomain: brand.customDomain,
      customDomainVerified: brand.customDomainVerified,
      customDomainAddedAt: brand.customDomainAddedAt,
      publicEmail: brand.publicEmail,
      publicPhone: brand.publicPhone,
      publicAddress: brand.publicAddress,
      publicCity: brand.publicCity,
      publicCountry: brand.publicCountry,
      websiteUrl: brand.websiteUrl,
      whatsappNumber: brand.whatsappNumber,
      facebookUrl: brand.facebookUrl,
      instagramUrl: brand.instagramUrl,
      defaultLocale: brand.defaultLocale,
      defaultCurrency: brand.defaultCurrency,
      paypalEmail: brand.paypalEmail,
      paypalMerchantId: brand.paypalMerchantId,
      paymentMethodsEnabled: brand.paymentMethodsEnabled,
      isListedOnMarketplace: brand.isListedOnMarketplace,
      marketplaceRating: brand.marketplaceRating,
      homePageConfig: brand.homePageConfig,
      menuConfig: brand.menuConfig,
    } : null,
  }
}
