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 records are supported.{' '} Learn More

{records.length === 0 ? (

No DNS records found

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

{record.type}

{record.name}

{record.value}

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