"use client";

import dynamic from "next/dynamic";

/** Shapes and the lazy country-code picker, lifted out of `CompleteDetails`. */

export interface SocialUserData {
  email?: string;
  first_name?: string;
  last_name?: string;
  social_media_provider?: string;
  social_media_id?: string;
  social_profile_pic_url?: string;
  /** BE-160 — the Google ID token / LinkedIn ticket; required by `/social-auth/`. */
  social_token?: string;
}

import type { OrganizationSignupExtrasValues } from "./organizationSignupRules";

export interface CompleteDetailsValues extends OrganizationSignupExtrasValues {
  organizer_type: string;
  phone_number: string;
  country_code: string;
  documents: File[];
  license_number: string;
  company_name: string;
  nickname: string;
  latitude: string;
  longitude: string;
  termsAccepted: boolean;
}

export const CountryCodeSelect = dynamic(
  () => import("@/components/ui/CountryCodeSelect"),
  {
    ssr: false,
    loading: () => (
      <div className="h-[48px] rounded-2xl bg-gray-100 animate-pulse mb-4" />
    ),
  }
);
