import { ActionForm } from "@/components/action-form"; import { CopyButton } from "@/components/copy-button"; import { Input } from "@/components/ui/input"; import { SubmitButton } from "@/components/submit-button"; import type { Hy2NodeRow } from "@/lib/store"; import { createNodeAction, updateNodeAction } from "./actions"; const example = `- name: "HK AnyTLS" type: anytls server: hk.example.com port: 443 password: "your-password" sni: hk.example.com udp: true`; export function CustomNodeForm({ node }: { node?: Hy2NodeRow }) { return ( {node && }

仅写入订阅,不使用 HY2 鉴权和流量统计。订阅中的节点名称以 YAML 的 name 为准。