diff --git a/src/apps/profiles/src/member-profile/profile-header/HiringFormModal/HiringFormModal.tsx b/src/apps/profiles/src/member-profile/profile-header/HiringFormModal/HiringFormModal.tsx new file mode 100644 index 000000000..eea5d7e30 --- /dev/null +++ b/src/apps/profiles/src/member-profile/profile-header/HiringFormModal/HiringFormModal.tsx @@ -0,0 +1,48 @@ +import { FC } from 'react' + +import { UserProfile } from '~/libs/core' +import { BaseModal } from '~/libs/ui' + +interface HiringFormModalProps { + onClose: () => void + authProfile: UserProfile | undefined + profile: UserProfile + searchedSkills: string[] +} + +function populateIframeForm(profile: UserProfile, authProfile: any | undefined, searchedSkills: string[]): string { + const formUrl = `https://go.topcoder.com/talent-search-intake?handle=${profile.handle}` + + if (authProfile) { + return `${formUrl} +&first_name=${authProfile.firstName} +&last_name=${authProfile.lastName} +&email=${authProfile.email} +&searched_skills=${searchedSkills.join(',')}` + } + + return formUrl +} + +const HiringFormModal: FC = (props: HiringFormModalProps) => ( + + Interested in working with one of our experts? +
+ Start with this form. +

+ )} + size='lg' + > +