2
2
3
3
import { m , useAnimationControls , useForceUpdate } from 'framer-motion'
4
4
5
+ import { useIsMobile } from '~/atoms'
5
6
import { MotionButtonBase } from '~/components/ui/button'
6
7
import { NumberSmoothTransition } from '~/components/ui/number-transition/NumberSmoothTransition'
7
8
import { useIsClient } from '~/hooks/common/use-is-client'
@@ -18,6 +19,7 @@ import {
18
19
} from '~/providers/note/CurrentNoteDataProvider'
19
20
import { useCurrentNoteId } from '~/providers/note/CurrentNoteIdProvider'
20
21
import { useModalStack } from '~/providers/root/modal-stack-provider'
22
+ import { useIsEoFWrappedElement } from '~/providers/shared/WrappedElementProvider'
21
23
22
24
import {
23
25
ActionAsideContainer ,
@@ -29,6 +31,19 @@ import { AsideDonateButton } from '../shared/AsideDonateButton'
29
31
import { ShareModal } from '../shared/ShareModal'
30
32
import { usePresentSubscribeModal } from '../subscribe'
31
33
34
+ export const NoteBottomBarAction : Component = ( ) => {
35
+ const isMobile = useIsMobile ( )
36
+ if ( ! isMobile ) return null
37
+ return (
38
+ < div className = "mb-8 flex items-center justify-center space-x-8" >
39
+ < LikeButton />
40
+ < ShareButton />
41
+ < SubscribeButton />
42
+ < AsideDonateButton />
43
+ </ div >
44
+ )
45
+ }
46
+
32
47
export const NoteActionAside : Component = ( { className } ) => {
33
48
return (
34
49
< ActionAsideContainer className = { className } >
@@ -50,7 +65,10 @@ const NoteAsideCommentButton = () => {
50
65
id : data ?. id ,
51
66
}
52
67
} ) || { }
68
+
69
+ const isEoF = useIsEoFWrappedElement ( )
53
70
if ( ! id ) return null
71
+ if ( isEoF ) return null
54
72
return < AsideCommentButton refId = { id } title = { title ! } />
55
73
}
56
74
0 commit comments