import ReactMarkdown from 'react-markdown' import { Link } from 'react-router-dom' type Props = { title: string body?: string } export default ({ title, body }: Props) => ( (['/', '.'].some (e => href?.startsWith (e)) ? {children} : {children})) }}> {body || `このページは存在しません。[新規作成してください](/wiki/new?title=${ encodeURIComponent (title) })。`} )