import React from 'react';

interface Props {
  show: boolean;
  onDismiss: () => void;
}

export function RecoveryToast({ show, onDismiss }: Props): React.ReactElement | null {
  if (!show) return null;
  return (
    <div className="banner recovery">
      <span>🌱 흐름을 다시 이어갑니다</span>
      <button onClick={onDismiss} aria-label="닫기">✕</button>
    </div>
  );
}
