import React from 'react';
import { Redirect, Route } from 'react-router-dom';
import { isLogined } from './Auth';
function PrivateRoute({ path, children }) {
if (isLogined()) {
return (
{children}
)
} else {
alert('권한이 없습니다')
return (
)
}
}
export default PrivateRoute