// @flow
import React from 'react';
import compose from 'recompose/compose';
import { withCurrentUser } from 'src/components/withCurrentUser';
import AuthViewHandler from 'src/views/authViewHandler';
const Switch = props => {
const { Component, FallbackComponent, ...rest } = props;
return (
{authed => {
if (!authed) return ;
return ;
}}
);
};
// Connect that component to the Redux state
const ConnectedSwitch = compose(withCurrentUser)(Switch);
const signedOutFallback = (
Component: React$ComponentType<*>,
FallbackComponent: React$ComponentType<*>
) => {
return (props: *) => (
);
};
export default signedOutFallback;