import React from "react";
import { Widget } from "./BaseWidget";
import type { PhoneInputProps as CorePhoneInputProps } from "../widgets/phone-input";

export interface PhoneInputProps extends CorePhoneInputProps {
  className?: string;
}

export function PhoneInput({ className, ...props }: PhoneInputProps) {
  return <Widget widgetId="phone-input" config={props} className={className} />;
}
