rename Markdown to Camelcase

This commit is contained in:
Wildan Nursahidan
2025-05-18 15:40:46 +07:00
parent 467bbaecba
commit d66f37085a
18 changed files with 23 additions and 43 deletions

View File

@@ -0,0 +1,25 @@
import { ComponentProps } from "react";
import NextImage from "next/image";
type Height = ComponentProps<typeof NextImage>["height"];
type Width = ComponentProps<typeof NextImage>["width"];
export default function Image({
src,
alt = "alt",
width = 800,
height = 350,
...props
}: ComponentProps<"img">) {
if (!src) return null;
return (
<NextImage
src={src}
alt={alt}
width={width as Width}
height={height as Height}
quality={40}
{...props}
/>
);
}