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