()
| 39 | ]; |
| 40 | |
| 41 | export const AskFAQ = (): ReactElement => { |
| 42 | const { logEvent } = useLogContext(); |
| 43 | |
| 44 | const handleFAQChange = (value: string) => { |
| 45 | if (value) { |
| 46 | logEvent({ |
| 47 | event_name: LogEvent.Click, |
| 48 | target_id: TargetId.AskPage, |
| 49 | extra: JSON.stringify({ faq: value }), |
| 50 | }); |
| 51 | } |
| 52 | }; |
| 53 | |
| 54 | return ( |
| 55 | <FlexCol className="w-full gap-10 pb-10"> |
| 56 | <Typography |
| 57 | type={TypographyType.Title3} |
| 58 | bold |
| 59 | color={TypographyColor.Tertiary} |
| 60 | > |
| 61 | Frequently asked questions |
| 62 | </Typography> |
| 63 | <RadixAccordion |
| 64 | items={faq} |
| 65 | className="rounded-16 bg-surface-float [&_.AccordionTrigger]:items-start [&_.AccordionTrigger]:text-left" |
| 66 | onValueChange={handleFAQChange} |
| 67 | /> |
| 68 | </FlexCol> |
| 69 | ); |
| 70 | }; |
nothing calls this directly
no test coverage detected