PostButton.tsx raw
1 import { useCompose } from '@/providers/ComposeProvider'
2 import { useNostr } from '@/providers/NostrProvider'
3 import { SquarePen } from 'lucide-react'
4 import BottomNavigationBarItem from './BottomNavigationBarItem'
5
6 export default function PostButton() {
7 const { checkLogin } = useNostr()
8 const { openCompose } = useCompose()
9
10 return (
11 <BottomNavigationBarItem
12 onClick={() => checkLogin(() => openCompose())}
13 >
14 <SquarePen />
15 </BottomNavigationBarItem>
16 )
17 }
18