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 ? (