import { Notice } from '../../core/Notice';

export type DownloadMessagesProps = {
  pdfSupportMessage?: string | null;
  premiumUnavailableMessage?: string | null;
  exportError?: string | null;
};

export function DownloadMessages({ pdfSupportMessage, premiumUnavailableMessage, exportError }: DownloadMessagesProps) {
  return (
    <>
      {pdfSupportMessage ? <Notice variant="neutral">{pdfSupportMessage}</Notice> : null}
      {premiumUnavailableMessage ? <Notice variant="danger">{premiumUnavailableMessage}</Notice> : null}
      {exportError ? <Notice variant="danger">{exportError}</Notice> : null}
    </>
  );
}
