You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
553 B
React

2 years ago
import { Markdown } from './Markdown.jsx'
export const Problem = ({ id, content, createdBy }) => {
2 years ago
return (
<div class="problem">
<div class="problem-header">
<div class="problem-title">
<a href={`/problem/${id}`}>Problema {id}</a>
2 years ago
</div>
{createdBy && <div class="problem-author">Creato da @{createdBy}</div>}
2 years ago
</div>
<div class="problem-content">
<Markdown source={content} />
</div>
</div>
)
}