-
Notifications
You must be signed in to change notification settings - Fork 295
Expand file tree
/
Copy pathCollectionPostWidgets.tsx
More file actions
44 lines (43 loc) · 1.39 KB
/
CollectionPostWidgets.tsx
File metadata and controls
44 lines (43 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import type { ReactElement } from 'react';
import React from 'react';
import { PageWidgets } from '../../utilities';
import { ShareMobile } from '../../ShareMobile';
import ShareBar from '../../ShareBar';
import { CollectionsIntro } from '../widgets';
import { RelatedPostsWidget } from '../RelatedPostsWidget';
import { PostRelationType } from '../../../graphql/posts';
import type { PostWidgetsProps } from '../PostWidgets';
import { FooterLinks } from '../../footer';
import { PostSidebarAdWidget } from '../PostSidebarAdWidget';
import { FeaturedArchives } from '../../widgets/FeaturedArchives';
import { PostSignupWidget } from '../PostSignupWidget';
export const CollectionPostWidgets = ({
onCopyPostLink,
post,
origin,
className,
}: PostWidgetsProps): ReactElement => {
return (
<PageWidgets className={className}>
<PostSignupWidget />
<CollectionsIntro className="hidden laptop:flex" />
<RelatedPostsWidget
post={post}
relationType={PostRelationType.Collection}
/>
<PostSidebarAdWidget
postId={post.id}
className={{ container: 'w-full bg-transparent' }}
/>
<ShareBar post={post} />
<ShareMobile
post={post}
origin={origin}
onCopyPostLink={onCopyPostLink}
link={post.commentsPermalink}
/>
<FeaturedArchives postId={post.id} />
<FooterLinks />
</PageWidgets>
);
};