From 001e696bf6978334bdfecb82e7942d6cf118e2cc Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 15 Mar 2024 09:28:51 +0100 Subject: [PATCH] =?UTF-8?q?:passport=5Fcontrol:=20Only=20show=20suspicious?= =?UTF-8?q?=20bot=20claim=20for=20no=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SuspectedTypebotBanner.tsx | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/apps/builder/src/features/editor/components/SuspectedTypebotBanner.tsx b/apps/builder/src/features/editor/components/SuspectedTypebotBanner.tsx index 50f911f2c..6d6025584 100644 --- a/apps/builder/src/features/editor/components/SuspectedTypebotBanner.tsx +++ b/apps/builder/src/features/editor/components/SuspectedTypebotBanner.tsx @@ -1,12 +1,15 @@ import { TextLink } from '@/components/TextLink' import { useUser } from '@/features/account/hooks/useUser' +import { useWorkspace } from '@/features/workspace/WorkspaceProvider' import { HStack, Text } from '@chakra-ui/react' +import { Plan } from '@typebot.io/prisma' type Props = { typebotId: string } export const SuspectedTypebotBanner = ({ typebotId }: Props) => { const { user } = useUser() + const { workspace } = useWorkspace() if (!user?.email) return null @@ -24,16 +27,20 @@ export const SuspectedTypebotBanner = ({ typebotId }: Props) => { Our anti-scam system flagged your typebot. It is currently being reviewed manually. -
- If you think that's a mistake,{' '} - - contact us - - . + {workspace?.plan !== Plan.FREE ? ( + <> +
+ If you think that's a mistake,{' '} + + contact us + + . + + ) : null}
)