()
| 34 | } |
| 35 | |
| 36 | function UpperCaserOnRender() { |
| 37 | const greetings = ['Hello World', 'yo', `what's up?`]; |
| 38 | const textToUppercase = greetings[Math.floor(Math.random() * greetings.length)]; |
| 39 | const { status, data: uppercasedText } = useCallableFunctionResponse<{ text: string }, string>('capitalizeText', { data: { text: textToUppercase } }); |
| 40 | |
| 41 | if (status === 'loading') { |
| 42 | return <LoadingSpinner />; |
| 43 | } |
| 44 | |
| 45 | return <span>{uppercasedText}</span>; |
| 46 | } |
| 47 | |
| 48 | export function Functions() { |
| 49 | const app = useFirebaseApp(); |
nothing calls this directly
no test coverage detected