mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-05-15 21:34:26 -04:00
move some non-post pages to mdx
This commit is contained in:
@@ -2,18 +2,18 @@ import clsx from "clsx";
|
||||
import Link from "../Link";
|
||||
import type { Route } from "next";
|
||||
import type { IconType } from "react-icons";
|
||||
import type { ComponentPropsWithoutRef } from "react";
|
||||
|
||||
import styles from "./MenuItem.module.css";
|
||||
|
||||
export type MenuItemProps = {
|
||||
export type MenuItemProps = Omit<ComponentPropsWithoutRef<typeof Link>, "href"> & {
|
||||
text?: string;
|
||||
href?: Route;
|
||||
icon?: IconType;
|
||||
current?: boolean;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const MenuItem = ({ text, href, icon, current, className }: MenuItemProps) => {
|
||||
const MenuItem = ({ text, href, icon, current, className, ...rest }: MenuItemProps) => {
|
||||
const Icon = icon;
|
||||
|
||||
const item = (
|
||||
@@ -32,6 +32,7 @@ const MenuItem = ({ text, href, icon, current, className }: MenuItemProps) => {
|
||||
title={text}
|
||||
plain
|
||||
aria-label={text}
|
||||
{...rest}
|
||||
>
|
||||
{item}
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user