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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user