Files
artcraft/frontend/editor3d/app/components/reusable/UploadModal/UploadAssetError.tsx
T
Brandon Thomas b31badc6d1 Editor3D - this directory is a fork of "studio gen 2" by Tanish.
We'll be using this for our image generation roadmap:

https://docs.google.com/document/d/1O9YI_iLwXkl2wAJJ23dFp3eHR-JzhlRHCBPD8psG-1E/edit

The original Studio Gen 2 is in the `frontend/studio-gen-2` directory.

The original Studio Gen 1 is in the `frontend/studio-gen-1` directory
2025-03-31 13:28:59 -04:00

32 lines
697 B
TypeScript

import { Button, P, H3 } from "~/components";
import { FilterEngineCategories } from "~/enums";
interface Props {
onCancel: () => void;
onRetry: () => void;
type: FilterEngineCategories | string;
errorMessage?: string;
}
export const UploadAssetError = ({
onCancel,
onRetry,
type,
errorMessage,
}: Props) => {
return (
<>
<H3>Error in Uploading {type}</H3>
<P>{errorMessage ?? "Unknown Error"}</P>
<div className="mt-6 flex justify-end gap-2">
<Button onClick={onCancel} variant="secondary">
Cancel
</Button>
<Button onClick={onRetry} variant="primary">
Try again
</Button>
</div>
</>
);
};