import React from 'react'; import { faTools } from '@fortawesome/free-solid-svg-icons'; import FlexRow from '../../../layout/FlexRow/FlexRow'; import FlexCol from '../../../layout/FlexCol/FlexCol'; import Heading from '../../../atoms/Heading/Heading'; import Text from '../../../atoms/Text/Text'; import Link from '../../../atoms/Link/Link'; import { useViewport } from '../../../../hooks/useViewport/useViewport'; import { breakpoints } from '../../../../constants/breakpoints'; import { colors } from '../../../../constants'; import { ErrorTemplateProps } from '../types'; import { StyledIcon, StyledLink } from '../styles'; import { ThemeProvider, useThemeContext } from '../../../styles/Theme'; export interface FiveHundredErrorProps extends ErrorTemplateProps { linkUrl?: string; linkText?: string; } const FiveHundred = ({ icon = faTools, linkUrl = 'https://www.zopa.com', linkText = 'Go to Zopa home', }: FiveHundredErrorProps) => { const { width = 0 } = useViewport(); const theme = useThemeContext(); return (
Sorry, there’s been a problem We’re working to fix this problem and we’ll be up and running shortly. Keep seeing this page?{' '} Try clearing your browser cookies {' '} or come back later {linkText} Error code: 500
); }; export default FiveHundred;