overkill
This commit is contained in:
parent
3044bd625f
commit
59bfe7ecf7
1 changed files with 11 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
||||||
|
const InflectedUnitNumber = ({ number, singular, plural }) => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<span>
|
||||||
|
{number} {number === 1 ? singular : plural}
|
||||||
|
</span>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default InflectedUnitNumber;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue