src/components/link.tsximport NextLink, { type LinkProps } from 'next/link'import { forwardRef } from 'react'import { Icon } from '@/components/icon'import { clsx } from 'clsx'type LinkWithIconProps = LinkProps &React.ComponentPropsWithoutRef<'a'> & {icon?: { body: string; width?: number; height?: number }iconPlacement?: 'before' | 'after'iconSize?: string}export const Link = forwardRef(function Link({icon,iconPlacement = 'after',iconSize = 'w-5 h-5',children,className,...props
Showing the first 20 lines.
Get full code