Rev 5285 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react'
const StatItem = ({ title = '', number = 0, url = '' }) => {
return (
<a
href={url}
className="sidebar__stat"
target="secondary"
onClick={(e) => !url && e.preventDefault()}
>
<span>{title}</span>
<span className="sidebar__stat-number">{number}</span>
</a>
)
}
export default StatItem