AdminPage.js 657 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
2
import Monthly from "../../components/Calendar/AdminMonthly.js";
import Footer from "../../components/Footer.js";
Kim, Subin's avatar
context    
Kim, Subin committed
3
import { useAuth } from "../../utils/context.js";
Kim, Subin's avatar
Kim, Subin committed
4
5
6
import styles from "./admin.module.scss";

const AdminPage = () => {
Kim, Subin's avatar
context    
Kim, Subin committed
7
8
    const { logout } = useAuth()

Kim, Subin's avatar
Kim, Subin committed
9
10
    return (
        <>
Kim, Subin's avatar
context    
Kim, Subin committed
11
            <p className={`position-absolute user-select-none ${styles.status}`}>관리자님, 환영합니다. | <span className={styles.cursor} onClick={logout}>로그아웃</span></p>
Kim, Subin's avatar
Kim, Subin committed
12
13
            <div className={styles.body}>
                <Monthly />
Kim, Subin's avatar
Kim, Subin committed
14
            </div>
Kim, Subin's avatar
Kim, Subin committed
15
            <Footer pathname="admin/edit" />
Kim, Subin's avatar
Kim, Subin committed
16
17
18
19
20
        </>
    )
}

export default AdminPage