import { BrowserRouter, Link, Route, Routes } from "react-router"; import type { ReactNode } from "react"; import { useMsal } from "@azure/msal-react"; import { Moon, Sun } from "lucide-react"; import DevAuthSwitcher from "./components/DevAuthSwitcher"; import { DEFAULT_COMMUNITY_ID, setTheme, useTheme } from "./config"; import { useCommunity } from "./api/hooks"; import { isMsalConfigured } from "./lib/auth/msal.config"; import AuthCallbackPage from "./pages/AuthCallback"; import HomePage from "./pages/HomePage"; import LoginPage from "./pages/Login"; import MatchDetailPage from "./pages/MatchDetailPage"; import MatchGameDetailPage from "./pages/MatchGameDetailPage"; import MatchTeamProgressPage from "./pages/MatchTeamProgressPage"; import AuctionPage from "./pages/AuctionPage"; import UserHistoryPage from "./pages/UserHistoryPage"; import CommunityInternalStatsPage from "./pages/CommunityInternalStatsPage"; import InternalMatchDetailPage from "./pages/InternalMatchDetailPage"; import LegacyImportPage from "./pages/admin/LegacyImportPage"; import LegacyMatchesPage from "./pages/admin/LegacyMatchesPage"; import MatchAdminPage from "./pages/admin/MatchAdminPage"; import TournamentCodesPage from "./pages/admin/TournamentCodesPage"; function MsalHeaderActions() { const { accounts, instance } = useMsal(); const account = instance.getActiveAccount() ?? accounts[0]; if (!account) { return ( 로그인 ); } return ( ); } function ThemeToggle() { const theme = useTheme(); const nextTheme = theme === "light" ? "dark" : "light"; const label = nextTheme === "dark" ? "다크 테마로 전환" : "라이트 테마로 전환"; const Icon = nextTheme === "dark" ? Moon : Sun; return ( ); } function AppFooter() { return ( ); } function LegalPage({ title, children, }: { title: string; children: ReactNode; }) { return (
← 홈으로

{title}

{children}
); } function App() { const communityQuery = useCommunity(DEFAULT_COMMUNITY_ID); const communityLabel = communityQuery.data?.name ?? "LOLYMPUS"; return (
} /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } />

This service is provided for community tournament support, including match scheduling, participation management, team organization, and related statistics.

By using this service, users agree not to interfere with service operation, misuse community data, or submit content that violates applicable laws or community rules.

} />

This service processes account, profile, match participation, team, and authentication data only as needed to operate community tournament features.

Users may request access, correction, or deletion of their personal data through the service administrator, subject to records that must be retained for service integrity or legal obligations.

} />
); } export default App;