/** * JailFileForm — structured form editor for a single `jail.d/*.conf` file. * * Renders each jail section in the file as an accordion panel with fields for * all common jail settings plus log paths, action references, and extra keys. * * All fields auto-save through `useAutoSave`. */ import { MessageBar, MessageBarBody, Skeleton, SkeletonItem } from "@fluentui/react-components"; import { useJailFileConfig } from "../../hooks/useJailFileConfig"; import { JailFileFormInner } from "./JailFileFormInner"; interface JailFileFormProps { filename: string; } export function JailFileForm({ filename }: JailFileFormProps): React.JSX.Element { const { config, loading, error, save } = useJailFileConfig(filename); if (loading) { return (
); } if (error !== null) { return ( {error} ); } if (config === null) { return <>; } return ; }