start extracting types to shared .d.ts file

This commit is contained in:
2022-01-10 14:18:33 -05:00
parent b552b6ae64
commit 0ef7ff5f92
12 changed files with 45 additions and 30 deletions
+7 -1
View File
@@ -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"));