import { portalId } from '../../constants/leadinConfig'; import { __ } from '@wordpress/i18n'; import ElementorBanner from '../Common/ElementorBanner'; import UISpinner from '../../shared/UIComponents/UISpinner'; import useForms from './hooks/useForms'; import EmbedderContainer from '../../shared/Common/EmbedderContainer'; interface IElementorFormSelectProps { formId: string; setAttributes: Function; } function ElementorFormSelect({ formId, setAttributes, }: IElementorFormSelectProps) { const { hasError, forms, loading } = useForms(); return loading ? (
) : hasError ? ( {__('Please refresh your forms or try again in a few minutes', 'leadin')} ) : ( ); } export default function ElementorFormSelectContainer( props: IElementorFormSelectProps ) { return ( ); }