mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-19 16:15:04 +00:00
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
32 lines
697 B
TypeScript
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>
|
|
</>
|
|
);
|
|
};
|