import { Box, Link } from "@mui/material"; import { Typography } from "../Atoms/Typography"; import { useTranslation } from "../../contexts/I18nContext"; import { useModal } from "../../contexts/modal"; interface Reference { "@type": string; label: string; uri: string; } type ReferencesProps = { links: Reference[]; }; function References({ links }: ReferencesProps) { const { t } = useTranslation(); const { openModal } = useModal(); return ( {t("outcome.supportingLinks")} {links && links.map((link, index) => ( {link?.label} { openModal({ type: "externalLink", state: { externalLink: link?.uri, }, }); }} style={{ textDecoration: "none" }} sx={{ cursor: "pointer", }} > Link icon. {link?.uri} ))} ); } export default References;