({ messageKey })
| 6 | import { LoadingSpinner } from '../display/LoadingSpinner'; |
| 7 | |
| 8 | export const RcString = ({ messageKey }) => { |
| 9 | const { status, data: messageValue } = useRemoteConfigString(messageKey); |
| 10 | |
| 11 | if (status === 'loading') { |
| 12 | return <LoadingSpinner />; |
| 13 | } |
| 14 | return ( |
| 15 | <CardSection title="Retrieve string 'message'"> |
| 16 | <span>{messageValue}</span> |
| 17 | </CardSection> |
| 18 | ); |
| 19 | }; |
| 20 | |
| 21 | export const RemoteConfig = () => { |
| 22 | const { status, data: remoteConfigInstance } = useInitRemoteConfig(async (firebaseApp) => { |
nothing calls this directly
no test coverage detected