import { type ForwardedRef, forwardRef } from 'react';
import { ActivityIndicator, type ActivityIndicatorProps } from 'react-native';

export interface SpinnerProps extends ActivityIndicatorProps {}

export const Spinner = forwardRef<ActivityIndicator, SpinnerProps>(
  (props, ref: ForwardedRef<ActivityIndicator>) => <ActivityIndicator ref={ref} {...props} />,
);

Spinner.displayName = 'Spinner';
