import React from "react"; import Link, { LinkProps } from "next/link"; type MakeOptional = Omit & Partial>; type RefineLinkProps = ( | (MakeOptional & { to: LinkProps["href"]; }) | LinkProps ) & { children: React.ReactNode; ref?: React.Ref; }; export const RefineLink: React.FC = React.forwardRef( ({ children, ...props }, ref) => ( {children} ), ); RefineLink.displayName = "RefineLink";