import { SupportCategories } from '@supabase/shared-types/out/constants' import { Blocks, ExternalLink } from 'lucide-react' import { useRouter } from 'next/router' import { Button } from 'ui' import { SupportLink } from '@/components/interfaces/Support/SupportLink' import { detectBrowser } from '@/lib/helpers' interface InsertBeforeRemoveChildErrorHandlerProps { message: string sentryIssueId: string urlMessage: string isRemoveChildError: boolean isInsertBeforeError?: boolean } export const InsertBeforeRemoveChildErrorHandler = ({ message, sentryIssueId, urlMessage, isRemoveChildError, isInsertBeforeError, }: InsertBeforeRemoveChildErrorHandlerProps) => { const router = useRouter() const browser = detectBrowser() return ( <>

Sorry! A browser extension may have caused an error.

Browser translation tools (like Chrome's built-in Translate) or some third-party browser extensions are known to cause errors when using the Briven Dashboard.

We highly recommend{' '} {browser === 'Chrome' ? 'disabling Chrome Translate or certain browser extensions' : 'avoiding the use of browser translation tools or disabling certain extensions'} {' '} while using the Briven Dashboard to avoid running into this error. Try to refresh the browser to see if it occurs again.

Error: {message}

Still stuck? ) }