import { useState } from 'react' import { ChevronRightIcon, ChevronDownIcon } from '@heroicons/react/solid' import GradientText from './GradientText' import cls from 'classnames' const social = [ { name: 'Twitter', href: 'https://twitter.com/mangomarkets', icon: (props) => ( ), }, { name: 'GitHub', href: 'https://github.com/blockworks-foundation', icon: (props) => ( ), }, ] export const FiveOhFive = ({ error }) => { const stack = error.stack.split('\n').slice(0, 5).join('\n') const [showDetails, toggleDetails] = useState(false) const Icon = showDetails ? ChevronDownIcon : ChevronRightIcon return (
Workflow

500 error

Something went wrong

The page you are looking for could not be loaded.

{error.message}
{stack}
Join Discord
) }