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.
20 lines
557 B
JavaScript
20 lines
557 B
JavaScript
import { Link } from '../Router.jsx'
|
|
import { Markdown } from './Markdown.jsx'
|
|
|
|
export const Problem = ({ id, content }) => {
|
|
return (
|
|
<div class="problem">
|
|
<div class="problem-header">
|
|
<div class="problem-title">
|
|
<Link page={`/problem/:id`} params={{ id }}>
|
|
Problema {id}
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
<div class="problem-content">
|
|
<Markdown source={content} />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|