MCPcopy Create free account
hub / github.com/dailydotdev/apps / useHasPostCapsule

Function useHasPostCapsule

packages/shared/src/components/post/PostCapsule.tsx:50–54  ·  view source on GitHub ↗
(post?: Pick<Post, 'type'>)

Source from the content-addressed store, hash-verified

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.
50export const useHasPostCapsule = (post?: Pick<Post, 'type'>): boolean => {
51 const { title: appFooterTitle } = useMobileAppFooterContext();
52
53 return !!post && post.type !== PostType.Brief && !appFooterTitle;
54};
55
56const transition = ['transform', 'bottom', 'height', 'border-radius', 'padding']
57 .map((property) => `${property} ${motion.snap}ms ${motion.interaction}`)

Callers 3

BasePostContentFunction · 0.90
PostHybridColumnFunction · 0.90
FooterWrapperFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected