2021-08-03 18:46:47 +00:00
|
|
|
import type { FunctionComponent } from "react";
|
|
|
|
import { useRef } from "react";
|
|
|
|
|
2022-05-14 10:22:06 +00:00
|
|
|
import Modal, { ModalTitle } from "~/features/core/components/modal";
|
2021-08-03 18:46:47 +00:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
isHelpModalOpen: boolean;
|
|
|
|
closeModal: () => void;
|
|
|
|
};
|
|
|
|
|
|
|
|
const HelpModal: FunctionComponent<Props> = ({ isHelpModalOpen, closeModal }) => {
|
|
|
|
const modalCloseButtonRef = useRef<HTMLButtonElement>(null);
|
|
|
|
return (
|
|
|
|
<Modal initialFocus={modalCloseButtonRef} isOpen={isHelpModalOpen} onClose={closeModal}>
|
|
|
|
<div className="md:flex md:items-start">
|
|
|
|
<div className="mt-3 text-center md:mt-0 md:ml-4 md:text-left">
|
2022-05-17 23:54:06 +00:00
|
|
|
<ModalTitle>Need some help?</ModalTitle>
|
2021-10-15 23:25:13 +00:00
|
|
|
<div className="mt-6 space-y-3 text-gray-500">
|
2021-08-03 18:46:47 +00:00
|
|
|
<p>
|
2022-05-17 23:54:06 +00:00
|
|
|
Try{" "}
|
|
|
|
<a className="underline" href="https://www.twilio.com/authorize/CN01675d385a9ee79e6aa58adf54abe3b3">
|
|
|
|
reconnecting your Twilio account
|
|
|
|
</a> to refresh the phone numbers.
|
2021-08-03 18:46:47 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2022-05-17 23:54:06 +00:00
|
|
|
If you are stuck, pick a date & time on{" "}
|
2021-08-03 18:46:47 +00:00
|
|
|
<a className="underline" href="https://calendly.com/shellphone-onboarding">
|
|
|
|
our calendly
|
|
|
|
</a>{" "}
|
|
|
|
and we will help you get started!
|
|
|
|
</p>
|
2021-08-27 22:12:25 +00:00
|
|
|
<p>
|
|
|
|
Don't miss out on free $10 Twilio credit by using{" "}
|
|
|
|
<a className="underline" href="https://www.twilio.com/referral/gNvX8p">
|
|
|
|
our referral link
|
|
|
|
</a>
|
|
|
|
.
|
|
|
|
</p>
|
2021-08-03 18:46:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="mt-5 md:mt-4 md:flex md:flex-row-reverse">
|
|
|
|
<button
|
|
|
|
ref={modalCloseButtonRef}
|
|
|
|
type="button"
|
2021-10-15 23:25:13 +00:00
|
|
|
className="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-primary-500 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 md:mt-0 md:w-auto"
|
2021-08-03 18:46:47 +00:00
|
|
|
onClick={closeModal}
|
|
|
|
>
|
2021-10-15 23:25:13 +00:00
|
|
|
Noted, thanks the help!
|
2021-08-03 18:46:47 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default HelpModal;
|