🛂 Only show suspicious bot claim for no…
This commit is contained in:
@ -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,6 +27,8 @@ export const SuspectedTypebotBanner = ({ typebotId }: Props) => {
|
||||
<Text fontWeight="bold">
|
||||
Our anti-scam system flagged your typebot. It is currently being
|
||||
reviewed manually.
|
||||
{workspace?.plan !== Plan.FREE ? (
|
||||
<>
|
||||
<br />
|
||||
If you think that's a mistake,{' '}
|
||||
<TextLink
|
||||
@ -34,6 +39,8 @@ export const SuspectedTypebotBanner = ({ typebotId }: Props) => {
|
||||
contact us
|
||||
</TextLink>
|
||||
.
|
||||
</>
|
||||
) : null}
|
||||
</Text>
|
||||
</HStack>
|
||||
)
|
||||
|
Reference in New Issue
Block a user