Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

429 B
Raw Blame
import NextLink, { type LinkProps as NextLinkProps } from "next/link";
import type { AnchorHTMLAttributes } from "react";

type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> &
  Omit<NextLinkProps, "href"> & {
    href?: NextLinkProps["href"];
    to?: NextLinkProps["href"];
  };

export default function Link({ href, to, ...props }: LinkProps) {
  return <NextLink href={href ?? to ?? "#"} {...props} />;
}