import React from 'react'; import { ActivityIndicator, StyleSheet, Text, View } from 'react-native'; import { ph, pv, SIZE, WEIGHT } from '../../common/common'; import { useTracked } from '../../provider'; import { Button } from '../Button'; export const Loading = ({ height = 150, tagline = 'Loading....', done = false, doneText = 'Action completed successfully!', onDone = () => {}, }) => { const [state, dispatch] = useTracked(); const {colors, tags, premiumUser} = state; return ( {done ? ( <> {doneText}