import { BrowserRouter, Routes, Route, NavLink } from "react-router-dom"; import { cn, getTodayKST, formatFullDate } from "@/utils"; import { useUIStore } from "@/stores"; import { useIsMobile, useCategories, useScheduleData } from "@/hooks"; import { ErrorBoundary, Loading, ToastContainer, ScheduleCard, Layout } from "@/components"; import { Schedule, Album } from "@/pages"; /** * 홈 페이지 (임시) */ function Home() { const today = getTodayKST(); const isMobile = useIsMobile(); const { showSuccess, showError } = useUIStore(); const { data: categories, isLoading: categoriesLoading } = useCategories(); const currentDate = new Date(); const { data: schedules, isLoading: schedulesLoading } = useScheduleData( currentDate.getFullYear(), currentDate.getMonth() + 1 ); return (
Phase 7 진행 중 - 스케줄 페이지
디바이스: {isMobile ? "모바일" : "PC"}
오늘: {formatFullDate(today)}
카테고리 ({categories?.length || 0}개)
{categoriesLoading ? (토스트 테스트
페이지 이동
variant="public" (공개 페이지용)
variant="admin" (관리자 페이지용)
이번 달 스케줄이 없습니다.