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

Function PlusPreviewCard

packages/shared/src/components/plus/PlusPreview.tsx:56–114  ·  view source on GitHub ↗
({
  onAction,
  context,
}: PlusPreviewCardProps)

Source from the content-addressed store, hash-verified

54}
55
56export const PlusPreviewCard = ({
57 onAction,
58 context,
59}: PlusPreviewCardProps): ReactElement => (
60 <div className="flex w-80 flex-col gap-3 rounded-16 border border-border-subtlest-tertiary bg-accent-pepper-subtlest p-4 shadow-2">
61 {context && (
62 <div className="border-b border-border-subtlest-tertiary pb-3">
63 {context}
64 </div>
65 )}
66 <div className="flex items-center gap-2">
67 <PlusTile />
68 <div className="flex flex-col">
69 <Typography type={TypographyType.Callout} bold>
70 daily.dev Plus
71 </Typography>
72 <Typography
73 type={TypographyType.Caption1}
74 color={TypographyColor.Tertiary}
75 >
76 On top of everything in Free
77 </Typography>
78 </div>
79 </div>
80 <ul className="flex flex-col gap-1.5">
81 {plusPreviewPerks.map((perk) => (
82 <li key={perk} className="flex items-center gap-2">
83 <VIcon
84 aria-hidden
85 size={IconSize.Size16}
86 className="text-action-plus-default"
87 />
88 <Typography
89 type={TypographyType.Footnote}
90 color={TypographyColor.Secondary}
91 >
92 {perk}
93 </Typography>
94 </li>
95 ))}
96 </ul>
97 <Link href={plusUrl} passHref>
98 <Button
99 tag="a"
100 variant={ButtonVariant.Primary}
101 color={ButtonColor.Bacon}
102 size={ButtonSize.Small}
103 icon={<DevPlusIcon secondary />}
104 className="w-full"
105 onClick={(event: MouseEvent<HTMLAnchorElement>) => {
106 event.stopPropagation();
107 onAction?.(event);
108 }}
109 >
110 Get Plus
111 </Button>
112 </Link>
113 </div>

Callers

nothing calls this directly

Calls 1

onActionFunction · 0.85

Tested by

no test coverage detected