import React from 'react' import classnames from 'classnames' import type { ConnectionStatus } from './types' import { Badge, Button } from 'react-bootstrap-5' import OLNotification from '@/features/ui/components/ol/ol-notification' import MaterialIcon from '@/shared/components/material-icon' const variants = { connected: 'success', connecting: 'warning', disconnected: 'danger', } export const ConnectionBadge = ({ state }: { state: ConnectionStatus }) => ( {state} ) export const DiagnosticItem = ({ icon, label, value, type, }: { icon: string label: string value: React.ReactNode type?: 'success' | 'danger' }) => (
{label}
{value}
) export function ErrorAlert({ message }: { message: string }) { return } export function ActionButton({ label, icon, onClick, disabled, }: { label: string icon: string onClick: () => void disabled?: boolean }) { return ( ) }