1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-05-15 20:54:28 -04:00

move some non-post pages to mdx

This commit is contained in:
2025-03-07 11:53:23 -05:00
parent 8118b8501a
commit 354dade9aa
72 changed files with 811 additions and 1873 deletions
+4 -3
View File
@@ -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>