You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							433 B
						
					
					
				
			
		
		
	
	
							20 lines
						
					
					
						
							433 B
						
					
					
				| 'use client';
 | |
| 
 | |
| import { useMDXComponent } from 'next-contentlayer/hooks';
 | |
| 
 | |
| import { MDXComponents } from '@/components/mdx-components';
 | |
| import { MDXStyles } from '@/components/mdx-styles';
 | |
| 
 | |
| type MDXContentProps = {
 | |
|   code: string;
 | |
| };
 | |
| 
 | |
| export function MDXContent({ code }: MDXContentProps) {
 | |
|   const Component = useMDXComponent(code);
 | |
| 
 | |
|   return (
 | |
|     <MDXStyles>
 | |
|       <Component components={MDXComponents} />
 | |
|     </MDXStyles>
 | |
|   );
 | |
| }
 | |
| 
 |