1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-24 07:50:47 +01:00
Whalebird-desktop-client-ma.../renderer/pages/accounts/[id]/index.tsx
2023-11-04 18:14:00 +09:00

22 lines
634 B
TypeScript

import { useRouter } from 'next/router'
import Image from 'next/image'
import Icon from '@/assets/256x256.png'
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">
<Image src={Icon} alt="icon" width={128} height={128} />
</div>
)
}