'use client'; import React from 'react'; import { AlertTriangle } from 'lucide-react'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { Heading } from '@/ui/Heading'; import { Text } from '@/ui/Text'; import { Icon } from '@/ui/Icon'; import { Surface } from '@/ui/Surface'; interface ServerErrorPanelProps { message?: string; incidentId?: string; } /** * ServerErrorPanel * * Displays the primary error information in an "instrument-grade" style. * Part of the 500 route redesign. */ export function ServerErrorPanel({ message, incidentId }: ServerErrorPanelProps) { return ( {/* Status Indicator */} {/* Primary Message */} CRITICAL_SYSTEM_FAILURE The application engine encountered an unrecoverable state. Telemetry has been dispatched to engineering. {/* Technical Summary */} STATUS: 500_INTERNAL_SERVER_ERROR {message && ( EXCEPTION: {message} )} {incidentId && ( INCIDENT_ID: {incidentId} )} ); }