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