import React, { ComponentType } from 'react'; import { useHistory, useLocation, useRouteMatch } from 'react-router'; import { Factory } from './factory'; import PanelTransition from './PanelTransition'; interface AuthPresenterProps { factory: Factory; } export const AuthPresenter: ComponentType = ({ factory }) => { const { Title, Body, Footer, Links } = factory(); const history = useHistory(); const location = useLocation(); const match = useRouteMatch(); return (
} Body={} Footer={
); };