2023-02-20 08:36:48 +01:00
|
|
|
type Props = {
|
|
|
|
url: string
|
|
|
|
onLinkClick: () => void
|
|
|
|
}
|
|
|
|
|
|
|
|
export const PopupBlockedToast = (props: Props) => {
|
|
|
|
return (
|
|
|
|
<div
|
2023-03-22 16:43:34 +01:00
|
|
|
class="w-full max-w-xs p-4 text-gray-500 bg-white shadow flex flex-col gap-2 typebot-popup-blocked-toast"
|
2023-02-20 08:36:48 +01:00
|
|
|
role="alert"
|
|
|
|
>
|
2023-04-26 15:59:22 +02:00
|
|
|
<div class="flex flex-col gap-1">
|
|
|
|
<span class=" text-sm font-semibold text-gray-900">Popup blocked</span>
|
|
|
|
<div class="text-sm font-normal">
|
|
|
|
The bot wants to open a new tab but it was blocked by your broswer. It
|
|
|
|
needs a manual approval.
|
|
|
|
</div>
|
2023-02-20 08:36:48 +01:00
|
|
|
</div>
|
2023-04-26 15:59:22 +02:00
|
|
|
|
2023-02-20 08:36:48 +01:00
|
|
|
<a
|
|
|
|
href={props.url}
|
|
|
|
target="_blank"
|
2023-04-26 15:59:22 +02:00
|
|
|
class="py-1 px-4 justify-center text-sm font-semibold text-white focus:outline-none flex items-center disabled:opacity-50 disabled:cursor-not-allowed disabled:brightness-100 filter hover:brightness-90 active:brightness-75 typebot-button"
|
2023-02-20 08:36:48 +01:00
|
|
|
rel="noreferrer"
|
|
|
|
onClick={() => props.onLinkClick()}
|
|
|
|
>
|
|
|
|
Continue in new tab
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|