import React, { Component } from 'react'; import { Route, Redirect } from "react-router-dom"; export default ({ component: Component, data, params, ...rest }) =>( { return }} /> )