feat(react/dialogs): port delete_notes

This commit is contained in:
Elian Doran
2025-08-05 18:05:41 +03:00
parent a4e6a964c9
commit 87d9ea06f3
13 changed files with 214 additions and 216 deletions

View File

@@ -10,11 +10,16 @@ interface ButtonProps {
keyboardShortcut?: string;
/** Called when the button is clicked. If not set, the button will submit the form (if any). */
onClick?: () => void;
primary?: boolean;
}
export default function Button({ buttonRef: _buttonRef, className, text, onClick, keyboardShortcut, icon }: ButtonProps) {
export default function Button({ buttonRef: _buttonRef, className, text, onClick, keyboardShortcut, icon, primary }: ButtonProps) {
const classes: string[] = ["btn"];
classes.push("btn-primary");
if (primary) {
classes.push("btn-primary");
} else {
classes.push("btn-secondary");
}
if (className) {
classes.push(className);
}