mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-04-21 12:05:30 -04:00
remove unnecessary PropsWithChildren
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
import NextLink from "next/link";
|
||||
import classNames from "classnames";
|
||||
import isAbsoluteUrl from "is-absolute-url";
|
||||
import type { PropsWithChildren } from "react";
|
||||
import type { LinkProps as NextLinkProps } from "next/link";
|
||||
|
||||
import styles from "./Link.module.css";
|
||||
|
||||
export type CustomLinkProps = Omit<JSX.IntrinsicElements["a"], "href"> &
|
||||
NextLinkProps &
|
||||
PropsWithChildren<{
|
||||
NextLinkProps & {
|
||||
forceNewWindow?: boolean;
|
||||
}>;
|
||||
};
|
||||
|
||||
const CustomLink = ({
|
||||
href,
|
||||
|
||||
Reference in New Issue
Block a user