import { FC } from 'react' import { AnimatePresence } from 'framer-motion' import { Route, Switch, useLocation } from 'react-router-dom' import { MountTransition } from './MountTransition' type Props = { exact?: boolean path: string slide?: number slideUp?: number } export const RouteTransition: FC = ({ children, exact = false, path, slide = 0, slideUp = 0, ...rest }) => ( {children} ) type RoutesProps = { exitBeforeEnter?: boolean initial?: boolean } export const AnimatedRoutes: FC = ({ children, exitBeforeEnter = true, initial = false, }) => { const location = useLocation() return ( {children} ) }