fix : lint
🔍 Lint / 🪄 Check lint (pull_request) Has been cancelled
🔍 Lint / 🎨 Check format (pull_request) Has been cancelled
🔍 Lint / 🔎 Typecheck (pull_request) Has been cancelled
🔍 Lint / 🏗 Build (pull_request) Has been cancelled
📊 Quality / 🔒 Security Audit (pull_request) Has been cancelled
📊 Quality / 📋 Dependency Freshness (pull_request) Has been cancelled
📊 Quality / 📦 Bundle Size (pull_request) Has been cancelled

This commit is contained in:
math-pixel
2026-05-12 16:51:35 +02:00
parent 700c088c48
commit ceffedf684
8 changed files with 93 additions and 156 deletions
-27
View File
@@ -1,27 +0,0 @@
import { useState } from "react";
interface DialogState {
message: string;
visible: boolean;
}
export function useDialog(): {
dialog: DialogState;
showDialog: (message: string) => void;
hideDialog: () => void;
} {
const [dialog, setDialog] = useState<DialogState>({
message: "",
visible: false,
});
const showDialog = (message: string): void => {
setDialog({ message, visible: true });
};
const hideDialog = (): void => {
setDialog((prev) => ({ ...prev, visible: false }));
};
return { dialog, showDialog, hideDialog };
}