import React from 'react'; import { faInfo } 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 { 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 Four0FourErrorProps extends ErrorTemplateProps { linkUrl?: string; linkText?: string; } const Four0Four = ({ icon = faInfo, linkUrl = 'https://www.zopa.com', linkText = 'Go to Zopa home', }: Four0FourErrorProps) => { const { width = 0 } = useViewport(); const theme = useThemeContext(); return (
Sorry, there’s been a problem Seems like the page you’re looking for doesn’t exist. {linkText} Error code: 404
); }; export default Four0Four;