export const tsx = `import { useState } from "react"; import { Pressable, Text, View } from "react-native"; type CounterProps = { label: string; step?: number; }; /** A counter with a label, the kind of thing every app has once. */ export function Counter({ label, step = 1 }: CounterProps) { const [count, setCount] = useState(0); const tone = count > 10 ? "warm" : "cool"; return ( {label} setCount((c) => c + step)}> {\`Tapped \${count} times (\${tone})\`} {count === 0 && Tap to start} ); } `;