parent
e00c3e5010
commit
313d66d50b
2 changed files with 25 additions and 3 deletions
@ -0,0 +1,18 @@ |
|||||||
|
import React from "react"; |
||||||
|
|
||||||
|
const RelativeCircle = ({ commentNum, className }) => { |
||||||
|
return ( |
||||||
|
<span |
||||||
|
class={`w-6 h-6 flex flex-col items-center justify-center text-center rounded-full border-2 ${className}`} |
||||||
|
> |
||||||
|
{commentNum} |
||||||
|
</span> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default RelativeCircle; |
||||||
|
|
||||||
|
RelativeCircle.defaultProps = { |
||||||
|
commentNum: "26", |
||||||
|
className: "", |
||||||
|
}; |
Loading…
Reference in new issue