import { refToUserId } from '../../shared/db-refs.js' import { Markdown } from './Markdown.jsx' export const Solution = ({ sentBy, forProblem, content }) => { const userId = refToUserId(sentBy) const problemId = refToUserId(forProblem) return (
Soluzione {userId && ( <> {' '} di @{userId} )} {problemId && ( <> {' '} per il Problema {problemId} )}
) }