+
- {draftId !== undefined && }
+ {draftId !== undefined && (
+
+ )}
{showDelete && (
{
+export const GalleryDraftDeleteButton = ({
+ className,
+ draftId,
+}: {
+ className?: string;
+ draftId: number;
+}): JSX.Element => {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
const { showToast } = useToasts();
@@ -41,7 +47,7 @@ export const GalleryDraftDeleteButton = ({ draftId }: { draftId: number }): JSX.
{
setOpen(true);
}}