| gio | 5f2f100 | 2025-03-20 18:38:48 +0400 | [diff] [blame] | 1 | import { NodeAppDetails } from "./node-app"; |
| 2 | import { NodeGatewayHttpsDetails } from "./node-gateway-https"; |
| 3 | import { AppNode } from "@/lib/state"; |
| 4 | import { NodeVolumeDetails } from "./node-volume"; |
| 5 | import { NodePostgreSQLDetails } from "./node-postgresql"; |
| 6 | import { NodeMongoDBDetails } from "./node-mongodb"; |
| 7 | import { NodeGithubDetails } from "./node-github"; |
| 8 | import { NodeGatewayTCPDetails } from "./node-gateway-tcp"; |
| 9 | |
| 10 | export function NodeDetails(props : AppNode) { |
| 11 | switch (props.type) { |
| 12 | case "app": return (<NodeAppDetails {...props} />); |
| 13 | case "gateway-https": return (<NodeGatewayHttpsDetails {...props} />); |
| 14 | case "gateway-tcp": return (<NodeGatewayTCPDetails {...props} />); |
| 15 | case "volume": return (<NodeVolumeDetails {...props} />); |
| 16 | case "postgresql": return (<NodePostgreSQLDetails {...props} />); |
| 17 | case "mongodb": return (<NodeMongoDBDetails {...props} />); |
| 18 | case "github": return (<NodeGithubDetails {...props} />) |
| 19 | default: return (<>nooo</>); |
| 20 | } |
| 21 | } |