DocViewError.tsx 376 B

1234567891011121314
  1. interface DocViewErrorProps {
  2. error: Error | null
  3. }
  4. export const DocViewError = ({ error }: DocViewErrorProps) => {
  5. return (
  6. <div className="p-6 mx-auto text-center sm:w-full md:w-3/4">
  7. <div className="text-foreground-light">
  8. <p>Error connecting to API</p>
  9. <p>{error?.message ?? 'An unexpected error occurred'}</p>
  10. </div>
  11. </div>
  12. )
  13. }