import React from 'react';
import { Text } from 'react-native';
import { ActivityIndicator, Modal, View, type ActivityIndicatorProps } from 'react-native';
import useTheme from '../hooks/useTheme';
export type Props = ActivityIndicatorProps & {
variant?: any
lightColor?: string;
darkColor?: string;
};
const LoaderComponent = (Props: Props) => {
const { currentTheme } = useTheme();
if (!currentTheme) return <>>
return (
)
}
export default LoaderComponent;
export const PageLoader = ({ loading = false, text }: { loading: boolean, text?: string }) => {
return (
<>
{text ? {text} : <>>}
>
)
}