
import PropTypes from 'prop-types';
import React from 'react';
import { Route } from 'react-router-dom';

export default function RouteWithProps({
	component: Component,
	exact, strict, path, ...other,
}) {
	return (
		<Route
			path={path}
			exact={exact}
			strict={strict}
			render={(matchProps) => <Component {...matchProps} {...other} />}
		/>
	);
}

RouteWithProps.propTypes = {
	component: PropTypes.func,
	exact: PropTypes.any,
	strict: PropTypes.any,
	path: PropTypes.any,
};

@@ -1,13 +1,12 @@
-%0A
 import PropT
@@ -174,31 +174,34 @@
 act,
- 
+%0A%09
 strict,
- 
+%0A%09
 path,
- 
+%0A%09
 ...other
 ,%0A%7D)
@@ -196,17 +196,16 @@
 ...other
-,
 %0A%7D) %7B%0A%09r

fix RouteWithProps syntax