import { Card } from "~/components/ui/card"; import type { Volume } from "~/lib/types"; import CodeMirror from "@uiw/react-codemirror"; import { yaml } from "@codemirror/lang-yaml"; import { copilot } from "@uiw/codemirror-theme-copilot"; import * as YML from "yaml"; type Props = { volume: Volume; }; export const DockerTabContent = ({ volume }: Props) => { const yamlString = YML.stringify({ services: { nginx: { image: "nginx:latest", volumes: [`${volume.name}:/path/in/container`], }, }, volumes: { [volume.name]: { external: true, }, }, }); return (