import React, { FC, useEffect } from 'react'; import { useSearchParams } from 'next/navigation'; import { ModalWrapperComponent } from '@gitroom/frontend/components/new-launch/modal.wrapper.component'; import { useModals } from '@gitroom/frontend/components/layout/new-modal'; import { Button } from '@gitroom/react/form/button'; export const PreConditionComponentModal: FC = () => { return (
This social channel was connected previously to another Postiz account. {'\n'} To continue, please fast-track your trial for an immediate charge.{'\n'} {'\n'} ** Please be advised that the account will not eligible for a refund, and the charge is final.
); }; export const PreConditionComponent: FC = () => { const modal = useModals(); const query = useSearchParams(); useEffect(() => { if (query.get('precondition')) { modal.openModal({ title: 'Suspicious activity detected', withCloseButton: false, classNames: { modal: 'text-textColor', }, size: 'auto', children: , }); } }, []); return null; };