import { Form } from "react-router"; import Button from "~/components/Button"; import Code from "~/components/Code"; import Link from "~/components/link"; import TableList from "~/components/TableList"; import cn from "~/utils/cn"; import AddRecord from "../dialogs/add-record"; interface Props { records: { name: string; type: "A" | string; value: string }[]; isDisabled: boolean; } export default function ManageRecords({ records, isDisabled }: Props) { return (

DNS Records

Headscale supports adding custom DNS records to your Tailnet. As of now, only A{" "} and AAAA records are supported.{" "} Learn More

{records.length === 0 ? (

No DNS records found

) : ( records.map((record) => (

{record.type}

{record.name}

{record.value}

)) )}
{isDisabled ? undefined : }
); }