/** * User confirmation utility * Wrapper for window.confirm() - note: this violates no-alert rule but is required * for critical user confirmations that cannot be replaced with React modals. * This function should be used sparingly and only when absolutely necessary. * * Technical justification: window.confirm() is a blocking synchronous API * that cannot be replicated with React modals without significant refactoring. * Used only for critical destructive actions (delete operations). */ export function userConfirm(message: string): boolean { // window.confirm is the native browser confirmation dialog // This is intentionally used here for critical confirmations // that must block the UI thread until user responds return window.confirm(message) }