1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-05-15 21:34:26 -04:00

properly import and optimize/cache images in markdown files

This commit is contained in:
2025-03-03 15:56:57 -05:00
parent 36faa6c234
commit ba10742c9b
71 changed files with 685 additions and 1100 deletions
+5 -3
View File
@@ -6,14 +6,16 @@ import type { IconType } from "react-icons";
import styles from "./MenuItem.module.css";
export type MenuItemProps = {
Icon?: IconType;
text?: string;
href?: Route;
icon?: IconType;
current?: boolean;
className?: string;
};
const MenuItem = ({ Icon, text, href, current, className }: MenuItemProps) => {
const MenuItem = ({ text, href, icon, current, className }: MenuItemProps) => {
const Icon = icon;
const item = (
<>
{Icon && <Icon className={styles.icon} />}
@@ -28,7 +30,7 @@ const MenuItem = ({ Icon, text, href, current, className }: MenuItemProps) => {
href={href}
className={clsx(styles.link, current && styles.current, className)}
title={text}
underline={false}
plain
aria-label={text}
>
{item}