import * as stylex from "@stylexjs/stylex";
import type { ForwardZone, LocalRecord } from "@/lib/types";
import { styles as shared } from "@/ui/styles";
import { styles as config } from "./styles";
/**
* Local records and forward zones under file authority. Collections are
* tables, not definition lists, and each names the ZON key it comes from once
* rather than repeating it on every row.
*/
export function RecordsReadOnly({ records }: { records: LocalRecord[] }) {
return (
Local records
local_records
{records.length === 0 ? (
The file declares no local records.
) : (
Name
Type
Value
TTL
{records.map((record) => (
{record.name}
{record.rtype}
{record.value}
{record.ttl}
))}
)}
);
}
export function ZonesReadOnly({ zones }: { zones: ForwardZone[] }) {
return (