refactor: page manager

This commit is contained in:
codytseng
2025-11-03 17:41:01 +08:00
parent 1b7ec56c89
commit 579385ce3d
13 changed files with 131 additions and 121 deletions

View File

@@ -1,11 +1,12 @@
import Profile from '@/components/Profile'
import PrimaryPageLayout from '@/layouts/PrimaryPageLayout'
import { useNostr } from '@/providers/NostrProvider'
import { TPageRef } from '@/types'
import { UserRound } from 'lucide-react'
import { forwardRef } from 'react'
import { useTranslation } from 'react-i18next'
const ProfilePage = forwardRef((_, ref) => {
const ProfilePage = forwardRef<TPageRef>((_, ref) => {
const { pubkey } = useNostr()
return (