'use client'
import { useRouter} from "next/navigation";
import dayjs from "dayjs";
import {useEffect} from "react";
import { isMobile } from 'react-device-detect';

export default function Home() {
    const {replace} = useRouter();
    useEffect(()=>{
        if(localStorage.getItem('platform-security')){
            if (isMobile){
                replace('/mobile/')
            }else {
                replace("/task/project")
            }
        }else {
            replace("/login")
        }
    },[])
    dayjs.locale('zh-cn')
    return (
        <main className="flex min-h-screen flex-col p-6">
        </main>
    );
}
