'use client' type Props = { open: boolean title?: string commandPreview: string onConfirm: () => void onCancel: () => void loading?: boolean } export default function ConfirmDialog({ open, title = 'Confirm action', commandPreview, onConfirm, onCancel, loading = false, }: Props) { if (!open) return null return (
) }