"use client"; import React from "react"; import { Card, CardBody, Table, TableHeader, TableColumn, TableBody, TableRow, TableCell, } from "@nextui-org/react"; import { useTranslation } from "@/shared/lib/useTranslation"; interface DNSRecordsPanelProps { cnameTarget: string; // e.g., subdomain.domainhost.com apexATarget?: string; // optional A record IP for apex } type DnsRow = { key: string; type: string; host: string; value: string }; const DNSRecordsPanel: React.FC = ({ cnameTarget, apexATarget, }) => { const { t } = useTranslation(); const rows: DnsRow[] = [ ...(cnameTarget ? [{ key: "cname", type: "CNAME", host: "www", value: cnameTarget }] : []), ...(apexATarget ? [{ key: "a-record", type: "A", host: "@", value: apexATarget }] : []), ]; return (

{"2. "} {t("Create your DNS records")}

{t("Type")} {t("Host")} {t("Value")} {(item) => ( {item.type} {item.host} {item.value} )}
); }; export default DNSRecordsPanel;