src/components/link.tsximport NextLink, { type LinkProps } from 'next/link'import { forwardRef } from 'react'import { Icon } from '@/components/icon'import { clsx } from 'clsx'import {type DOMNode,Element,type HTMLReactParserOptions,domToReact,} from 'html-react-parser'import { getAttrib } from '@/utils/parse-blocks-helpers'import { replaceProductionUrl } from '@/utils/replace-production-url'type LinkWithIconProps = LinkProps &React.ComponentPropsWithoutRef<'a'> & {icon?: { body: string; width?: number; height?: number }iconPlacement?: 'before' | 'after'iconSize?: string}
Showing the first 20 lines.
Get full code