()
| 255 | } |
| 256 | |
| 257 | export default function FAQ() { |
| 258 | const [tab, setTab] = useState(0); |
| 259 | return ( |
| 260 | <Paper |
| 261 | elevation={0} |
| 262 | sx={{ |
| 263 | bgcolor: (theme) => theme.palette.background.default, |
| 264 | overflowY: "auto", |
| 265 | width: "100%", |
| 266 | display: "flex", |
| 267 | justifyContent: "center", |
| 268 | }} |
| 269 | > |
| 270 | <Box sx={{width: "100%", maxWidth: 980, px: {xs: 2, sm: 3}, py: 3}}> |
| 271 | <Typography variant="h4" sx={{fontWeight: 600, mb: 0.5}}>帮助中心</Typography> |
| 272 | <Typography sx={{color: "text.secondary", mb: 2}}>常见问题、名词缩写、关于我们与用户协议</Typography> |
| 273 | <Tabs |
| 274 | value={tab} |
| 275 | onChange={(_, v) => setTab(v)} |
| 276 | sx={{mb: 3, borderBottom: "1px solid", borderColor: "divider", "& .MuiTab-root": {textTransform: "none", fontSize: 15}}} |
| 277 | > |
| 278 | <Tab label="常见问题"/> |
| 279 | <Tab label="名词缩写"/> |
| 280 | <Tab label="关于我们"/> |
| 281 | <Tab label="用户协议"/> |
| 282 | </Tabs> |
| 283 | |
| 284 | {tab === 0 && ( |
| 285 | <Box> |
| 286 | {faqItems.map((item) => ( |
| 287 | <FaqAccordion key={item.question} question={item.question}> |
| 288 | {item.answer} |
| 289 | </FaqAccordion> |
| 290 | ))} |
| 291 | </Box> |
| 292 | )} |
| 293 | {tab === 1 && <GlossaryPanel/>} |
| 294 | {tab === 2 && <AboutUs sx={{width: "100%", p: 0}}/>} |
| 295 | {tab === 3 && <Box sx={{color: "text.secondary"}}><AgreementContent/></Box>} |
| 296 | </Box> |
| 297 | </Paper> |
| 298 | ); |
| 299 | } |
nothing calls this directly
no outgoing calls
no test coverage detected