PhishingDetected.tsx 1007 B
Newer Older
Andrei Eres's avatar
Andrei Eres committed
import { useStore } from '@nanostores/react'
Andrei Eres's avatar
Andrei Eres committed
import React from 'react'
Andrei Eres's avatar
Andrei Eres committed
import { pageStore } from '../../stores/router'
Andrei Eres's avatar
Andrei Eres committed
import { H1 } from '../components/H1'
Andrei Eres's avatar
Andrei Eres committed

Andrei Eres's avatar
Andrei Eres committed
export const PhishingDetected = () => {
Andrei Eres's avatar
Andrei Eres committed
  const page = useStore(pageStore)
  const { param: website = '' } = page || {}
Andrei Eres's avatar
Andrei Eres committed
  const decodedWebsite = decodeURIComponent(website)

  return (
Andrei Eres's avatar
Andrei Eres committed
    <div>
Andrei Eres's avatar
Andrei Eres committed
      <H1>Phishing detected</H1>
      <p className='mb-2'>
Andrei Eres's avatar
Andrei Eres committed
        You have been redirected because the extension believes that this
Andrei Eres's avatar
Andrei Eres committed
        website could compromise the security of your accounts and your tokens:
      </p>
Andrei Eres's avatar
Andrei Eres committed
      <p className='mb-6'>{decodedWebsite}</p>
      <p className='mb-2'>
Andrei Eres's avatar
Andrei Eres committed
        Note that this website was reported on a community-driven, curated list.
        It might be incomplete or inaccurate. If you think that this website was
        flagged incorrectly,{' '}
        <a href='https://github.com/polkadot-js/phishing/issues/new'>
          please open an issue by clicking here
        </a>
      </p>
    </div>
Andrei Eres's avatar
Andrei Eres committed
  )
}