mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
19 lines
480 B
TypeScript
19 lines
480 B
TypeScript
import type {
|
|
DockerWidgetConfig,
|
|
WidgetEditFormProps,
|
|
} from "@/types/homepage-types";
|
|
import { SingleHostEditForm } from "@/features/homepage/dialogs/SingleHostEditForm";
|
|
|
|
export function DockerWidgetEditForm({
|
|
config,
|
|
onChange,
|
|
}: WidgetEditFormProps<DockerWidgetConfig>) {
|
|
return (
|
|
<SingleHostEditForm
|
|
hostId={config.hostId}
|
|
onChange={(hostId) => onChange({ ...config, hostId })}
|
|
filter={(h) => !!(h.enableSsh && h.enableDocker)}
|
|
/>
|
|
);
|
|
}
|