import React from "react";
import { View } from "react-native";
import { LoadingCircles } from "./LoadingCircles";

const Spinner = ({ color, style }) => {
	return (
		<View style={[styles.spinnerStyle, style]}>
			<LoadingCircles color={color} />
		</View>
	);
};

const styles = {
	spinnerStyle: {
		flex: 1,
		justifyContent: "center",
		alignItems: "center",
	},
};

export { Spinner };
