(post?: Pick<Post, 'type'>)
| 48 | // The phone post page carries its actions in the capsule alone, unless the |
| 49 | // app footer owns the bottom or the post type has no actions bar. |
| 50 | export const useHasPostCapsule = (post?: Pick<Post, 'type'>): boolean => { |
| 51 | const { title: appFooterTitle } = useMobileAppFooterContext(); |
| 52 | |
| 53 | return !!post && post.type !== PostType.Brief && !appFooterTitle; |
| 54 | }; |
| 55 | |
| 56 | const transition = ['transform', 'bottom', 'height', 'border-radius', 'padding'] |
| 57 | .map((property) => `${property} ${motion.snap}ms ${motion.interaction}`) |
no outgoing calls
no test coverage detected