import * as React from "react" import * as PropTypes from "prop-types" import defaultLink from "./defaultLink" export default class Container extends React.Component { public static childContextTypes = { Link: PropTypes.func.isRequired } public props: { Link?: any children: React.ReactNode } public getChildContext() { return { Link: this.props.Link || defaultLink } } public render() { return this.props.children } }