import { useSubmit } from '@remix-run/react' import { Button } from 'react-aria-components' import Code from '~/components/Code' import Link from '~/components/Link' import TableList from '~/components/TableList' import { cn } from '~/utils/cn' import AddDNS from './dialogs/dns' interface Props { records: { name: string, type: 'A', value: string }[] isDisabled: boolean } export default function DNS({ records, isDisabled }: Props) { const submit = useSubmit() 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 : ( )}
) }