Files
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

38 lines
967 B
TypeScript

import { useSignals } from "@preact/signals-react/runtime";
import { faTriangleExclamation } from "@fortawesome/pro-solid-svg-icons";
import { Button, TransitionDialogue } from "~/components";
import {
showErrorDialog,
errorDialogMessage,
errorDialogTitle,
} from "~/pages/PageEnigma/signals";
export function ErrorDialog() {
useSignals();
return (
<TransitionDialogue
title={errorDialogTitle.value}
titleIcon={faTriangleExclamation}
titleIconClassName="text-brand-primary"
isOpen={showErrorDialog.value}
onClose={() => (showErrorDialog.value = false)}
showClose={false}
>
<div>
{errorDialogMessage.value}
<div className="flex justify-end">
<Button
type="button"
onClick={() => (showErrorDialog.value = false)}
variant="secondary"
>
Close
</Button>
</div>
</div>
</TransitionDialogue>
);
}