()
| 51 | }; |
| 52 | |
| 53 | export const PlusFAQ = (): ReactElement => { |
| 54 | const id = useId(); |
| 55 | const titleId = `${id}-title`; |
| 56 | const { isPlus } = usePlusSubscription(); |
| 57 | const { value: isApiLanding } = useConditionalFeature({ |
| 58 | feature: featurePlusApiLanding, |
| 59 | shouldEvaluate: !isPlus, |
| 60 | }); |
| 61 | const items = isApiLanding ? plusFAQItemsApi : plusFAQItemsControl; |
| 62 | return ( |
| 63 | <section aria-labelledby={titleId} className="my-10"> |
| 64 | <Typography |
| 65 | bold |
| 66 | className="mb-10 text-center" |
| 67 | id={titleId} |
| 68 | tag={TypographyTag.H2} |
| 69 | type={TypographyType.Title3} |
| 70 | > |
| 71 | Frequently asked questions |
| 72 | </Typography> |
| 73 | <div className="mx-auto flex max-w-3xl flex-col gap-4"> |
| 74 | {items.map((item) => ( |
| 75 | <FAQItem key={item.question} item={item} /> |
| 76 | ))} |
| 77 | </div> |
| 78 | <Typography |
| 79 | className="mt-10 text-center" |
| 80 | color={TypographyColor.Tertiary} |
| 81 | type={TypographyType.Callout} |
| 82 | > |
| 83 | For technical or product related questions{' '} |
| 84 | <a |
| 85 | className="underline" |
| 86 | href={feedback} |
| 87 | target="_blank" |
| 88 | rel={anchorDefaultRel} |
| 89 | > |
| 90 | click here |
| 91 | </a>{' '} |
| 92 | or email us at{' '} |
| 93 | <a |
| 94 | className="underline" |
| 95 | href="mailto:support@daily.dev?subject=I have a question about Plus membership" |
| 96 | target="_blank" |
| 97 | rel={anchorDefaultRel} |
| 98 | > |
| 99 | support@daily.dev |
| 100 | </a> |
| 101 | </Typography> |
| 102 | </section> |
| 103 | ); |
| 104 | }; |
nothing calls this directly
no test coverage detected