@forbespro/lead-agent
Version:
Lead Chat Agent React Component
35 lines (34 loc) • 897 B
TypeScript
import * as React from 'react';
export interface LoqateAddress {
Id: string;
Type: string;
Text: string;
Description: string;
Highlight?: string;
}
export interface FullAddress {
Id: string;
Line1: string;
Line2: string;
City: string;
PostalCode: string;
CountryName: string;
}
interface AddressSearchProps {
id: string;
name: string;
value: string;
onChange: (value: string) => void;
onSelect: (value: string, structuredAddress?: {
street: string;
city: string;
state: string;
postalCode: string;
country: string;
}) => void;
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
placeholder?: string;
children?: React.ReactNode;
}
export declare const AddressSearch: React.ForwardRefExoticComponent<AddressSearchProps & React.RefAttributes<HTMLInputElement>>;
export {};