forked from github-starred/komodo
* remove instrument from validate_cancel_build * use type safe AllResources map - Action not showing omnisearch * Stack support replicated services * server docker nested tables * fix container networks which use network of another container * bump version * add 'address' to ServerListItemInfo * secrets list on variables page wraps * fix user data script * update default template user data * improve sidebar layout styling * fix network names shown on containers * improve stack service / container page * deleted resource log records Toml backup for later reference * align all the tables * add Url Builder type
24 lines
508 B
TypeScript
24 lines
508 B
TypeScript
import { DockerContainersSection } from "@components/util";
|
|
import { useRead } from "@lib/hooks";
|
|
import { ReactNode } from "react";
|
|
|
|
export const Containers = ({
|
|
id,
|
|
titleOther
|
|
}: {
|
|
id: string;
|
|
titleOther: ReactNode
|
|
}) => {
|
|
const containers =
|
|
useRead("ListDockerContainers", { server: id }, { refetchInterval: 10_000 })
|
|
.data ?? [];
|
|
return (
|
|
<DockerContainersSection
|
|
server_id={id}
|
|
containers={containers}
|
|
titleOther={titleOther}
|
|
pruneButton
|
|
/>
|
|
);
|
|
};
|