Skip to content

Commit d0be91b

Browse files
atriiyShroXd
authored andcommitted
fix: use audio player directly as client component
1 parent de5c35c commit d0be91b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎app/components/mdx.tsx‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react'
22

33
import 'katex/dist/katex.min.css'
44
import { MDXRemote } from 'next-mdx-remote/rsc'
5-
import dynamic from 'next/dynamic'
65
import Image from 'next/image'
76
import rehypeKatex from 'rehype-katex'
87
import rehypeSlug from 'rehype-slug'
@@ -25,11 +24,7 @@ import {
2524
import { Mermaid } from './Mermaid/Mermaid'
2625
import { MotionEstimationVisualizer } from './MotionEstimationVisualizer'
2726
import VectorDecomposition from './VectorDecomposition'
28-
29-
// Dynamic import for AudioPlayer
30-
const AudioPlayer = dynamic(() => import('./Audio'), {
31-
ssr: false,
32-
})
27+
import AudioPlayer from './Audio'
3328

3429
function CustomLink(props) {
3530
return <AnimatedLink {...props} />

0 commit comments

Comments
 (0)