Skip to content

The open alternative to Salesforce, designed for AI.

483 B
Raw Blame
import { createContext } from 'react';

import { type PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
import { type PreparedPhoneCountryOption } from './PreparedPhoneCountryOption';

export const PhoneCountryPickerContext = createContext<{
  countries: readonly PreparedPhoneCountryOption[];
  value: string | null;
  onValueChange: NonNullable<PhoneCountryPickerRootProps['onValueChange']>;
  disabled: boolean;
  closeOnSelect: boolean;
} | null>(null);