import { sanitizeHref } from "../../utils/sanitizeHtml"; export type Props = { text: string; href?: string; }; export default function Cta({ text, href }: Props) { const safeHref = sanitizeHref(href); const isExternal = /^https?:\/\//i.test(safeHref); return (
{text}
); }