1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-26 16:53:59 +01:00
Whalebird-desktop-client-ma.../renderer/pages/accounts/[id]/index.tsx
2024-01-09 21:33:01 +09:00

21 lines
569 B
TypeScript

import { Spinner } from '@material-tailwind/react'
import { useRouter } from 'next/router'
export default function Account() {
const router = useRouter()
if (typeof localStorage !== 'undefined') {
const lastTimeline = localStorage.getItem(`${router.query.id}_lastTimeline`)
if (lastTimeline) {
router.push(`/accounts/${router.query.id}/${lastTimeline}`)
} else {
router.push(`/accounts/${router.query.id}/home`)
}
}
return (
<div className="h-screen w-full flex justify-center items-center">
<Spinner />
</div>
)
}