import React from 'react';
import { View } from 'react-native';
import { SemanticColor, Typo } from '../../foundation';
import { Spin } from './Spin';
type Props = {
text?: string;
zIndex?: number;
};
/**
* # [Component] SpinWithTextAndOverlay
*
* 화면 전체를 덮기위해 프로젝트 부모 컴포넌트에 위치를 잡아주세요.
*
* ## Props
*
* ### `text`
* - (optional) 스피너 아래에 표시될 텍스트
*
* ### `zIndex`
* - (optional) default 10000
*
* @example
*
*
*/
export function SpinWithTextAndOverlay({ text, zIndex = 10000 }: Props): React.JSX.Element {
return (
{text && (
{text}
)}
);
}