import React from 'react';

type MessageProps = {
  children?: React.ReactNode;
  type: 'error' | 'loading' | 'no-data';
};

export default function Message({ children, type }: MessageProps) {
  return <div className={`react-pdf__message react-pdf__message--${type}`}>{children}</div>;
}
