diff --git a/mdx-components.tsx b/mdx-components.tsx
index 8eae550..750c996 100644
--- a/mdx-components.tsx
+++ b/mdx-components.tsx
@@ -106,27 +106,10 @@ export function getMDXComponents(components: MDXComponents): MDXComponents {
details: (props) => ,
summary: (props) => ,
- // Buttons (handle onclick string from transformerCopyButton)
- button: ({ children, onClick, ...props }: { children?: React.ReactNode; onClick?: string | (() => void); className?: string } & Record) => {
- if (typeof onClick === 'string') {
- const className = (props.className as string) ?? '';
- return (
- `
- }}
- suppressHydrationWarning
- />
- );
- }
- return (
-
- );
- },
+ button: ({ children, onClick, ...props }) => (
+ typeof onClick === 'string'
+ ?
+ :
+ ),
}
}