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

Function AskFAQ

packages/shared/src/features/ask/components/AskFAQ.tsx:41–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39];
40
41export 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};

Callers

nothing calls this directly

Calls 1

useLogContextFunction · 0.90

Tested by

no test coverage detected