mobile-app/app/components/themed/ThemedActivityIndicator.tsx
import { useThemeContext } from "@waveshq/walletkit-ui";
import { ActivityIndicator, ActivityIndicatorProps } from "react-native";
import { ThemedProps } from "./index";
type ThemedTextProps = ActivityIndicatorProps & ThemedProps;
export function ThemedActivityIndicator(props: ThemedTextProps): JSX.Element {
const { isLight } = useThemeContext();
const { style, ...otherProps } = props;
return (
<ActivityIndicator
color={isLight ? "#ff00af" : "#EE2CB1"}
style={style}
{...otherProps}
/>
);
}