import React, { FC } from 'react' import './styles.styl' interface Props { variant?: 'not-found' | 'network-error' } const CONTENT = { 'not-found': { title: 'Nothing here', message: 'This post could not be found.', }, 'network-error': { title: 'Could not connect', message: 'Content is served via GitHub Pages and raw.githubusercontent.com.' + ' Mainland China support is on the way — stay tuned!', }, } export const NoContent: FC = ({ variant = 'not-found' }) => (

{CONTENT[variant].title}

{CONTENT[variant].message}

)