import { GameHint } from "./rpcApi"; import * as React from 'react'; import { Alert, FormControlLabel, Switch } from '@mui/material'; import Markdown from '../Markdown'; export function Hint({hint} : {hint: GameHint}) { return
{hint.text}
} export function Hints({hints, showHidden} : {hints: GameHint[], showHidden: boolean}) { const openHints = hints.filter(hint => !hint.hidden) const hiddenHints = hints.filter(hint => hint.hidden) return <> {openHints.map(hint => )} {showHidden && hiddenHints.map(hint => )} }