/** @jsxImportSource @emotion/react */ import { RcPopup } from './RcPopup'; export interface RcReadyOrErrorPopupProps { ready: boolean; error: string; onClose: () => void; colorError?: string; colorLoading?: string; } export const RcReadyOrErrorPopup: React.FC = ({ ready, error, onClose, colorError = '#c01626', colorLoading = '#255fdf', }) => { if (ready) { return null; } if (error) { return ( ); } return ( ); };