import { ProblemId, SolutionStatus, UserId } from '../../shared/model' import { Markdown } from './Markdown' type Props = { sentBy?: UserId forProblem: ProblemId content: string status?: SolutionStatus } export const Solution = ({ sentBy, forProblem, content }: Props) => { return (
Soluzione {sentBy && ( <> {' '} di @{sentBy} )} {forProblem && ( <> {' '} per il Problema {forProblem} )}
) }