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,19 @@
import { ComponentProps } from "react";
import Copy from "./CopyMdx";
export default function Pre({
children,
raw,
...rest
}: ComponentProps<"pre"> & { raw?: string }) {
return (
<div className="my-5 relative">
<div className="absolute top-3 right-2.5 z-10 sm:block hidden">
<Copy content={raw!} />
</div>
<div className="relative">
<pre {...rest}>{children}</pre>
</div>
</div>
);
}