import React from "react"; import Breadcrumb from "../../components/Breadcrumb"; import { type VisaCountry } from "@/api/visa"; interface VisaDetailProps { country: VisaCountry; } export default function VisaDetail({ country }: VisaDetailProps) { // 1. Kiểm tra an toàn (Null Check) // Vì detailedView có kiểu là 'DetailedView | undefined', ta phải chắc chắn nó tồn tại if (!country || !country.detailedView) { return (
{countryData.description}
{countryData.additionalInfo}
{item.description}
{contactInfo.helpText}