mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
18 lines
322 B
JavaScript
18 lines
322 B
JavaScript
import fbt from "fbt";
|
|
|
|
export function Component(props) {
|
|
let count = 0;
|
|
if (props.items) {
|
|
count = props.items.length;
|
|
}
|
|
return (
|
|
<View>
|
|
{fbt(
|
|
`for ${fbt.param("count", count)} experiences`,
|
|
`Label for the number of items`,
|
|
{ project: "public" }
|
|
)}
|
|
</View>
|
|
);
|
|
}
|