mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-09-16 01:55:34 -04:00
start extracting types to shared .d.ts file
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import dynamic from "next/dynamic";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
const CustomCode = (props: any) => {
|
||||
type Props = {
|
||||
className?: string;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
const CustomCode = (props: Props) => {
|
||||
if (props.className?.split(" ").includes("hljs")) {
|
||||
const CopyButton = dynamic(() => import("../clipboard/CopyButton"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user