The problem is the import type. You exported a named const and need import as named on the MDX file, like @Dogbert suggested. I forked an example for MDX from the Astro's github examples and modified for your case on the StackBlitz.