import dynamic from "next/dynamic";
import Link from "next/link";
import Image from "next/image";
import type { LinkProps } from "next/link";
import type { ImageProps } from "next/image";
// The following components are all passed into as replacement HTML tags or drop-in React components
// available in .mdx files containing post content, since they're not directly aware of the components in this folder.
type CustomLinkProps = LinkProps & {
target?: string;
rel?: string;
className?: string;
children?: unknown;
};
const CustomLink = ({ href, target, rel, className, children }: CustomLinkProps) => (
{children}
);
const CustomImg = (props: ImageProps) => (
// the required height and width are part of the props, so they get automatically passed here with {...props}