/** * Danger Command Warning Modal * Ball Studios */ import React from 'react'; interface Suggestion { command: string; danger_reason?: string; } interface Props { suggestion: Suggestion; onConfirm: () => void; onCancel: () => void; } export default function DangerCommandWarning({ suggestion, onConfirm, onCancel }: Props) { return (
⚠️

Potentially Dangerous Command

/{suggestion.command} may have destructive effects. {suggestion.danger_reason && <>
{suggestion.danger_reason}}

); }