import React from 'react' import { useState } from 'react'; import { Button, Form, Image, Row, ButtonGroup, Modal, Dropdown, Col } from 'react-bootstrap'; import { Link, useHistory } from 'react-router-dom'; import '../App.css' import LoginComp from './LoginComp'; import LocalCode from '../components/LocalCode'; // import { isOauthChecked } from './../utils/Auth'; import { kakaoLogout } from '../utils/Oauth'; function MainLayer() { const history = useHistory() const boxstyled = { border: 'solid', color: 'rgba(195, 195, 195, 0.753)', borderRadius: '20px', borderWidth: '3px', marginBottom: '1em', width: '100%', backgroundSize: 'contain', margin: 'auto', textDecorationColor: 'none' } const btnstyled = { background: 'rgb(110, 189, 142)', margin: 'auto', marginBottom: '0.5em', display: 'flex', justifyContent: 'center', width: '100%', borderWidth: '2px', borderColor: 'rgba(195, 195, 195, 0.753)', borderRadius: '20px', textDecorationColor: 'none', color: 'white' } const logined = localStorage.getItem('nickname') return ( <> EUE {logined ? //true : //false } {!logined && } | ); } export default MainLayer