diff --git a/src/components/MediaPreview.tsx b/src/components/MediaPreview.tsx index 9e5e095244..6e368e7dcc 100644 --- a/src/components/MediaPreview.tsx +++ b/src/components/MediaPreview.tsx @@ -9,7 +9,7 @@ import {atoms as a, useTheme} from '#/alf' import {MediaInsetBorder} from '#/components/MediaInsetBorder' import {Text} from '#/components/Typography' import {PlayButtonIcon} from '#/components/video/PlayButtonIcon' -import {parseEmbed} from '#/types/bsky/post' +import * as bsky from '#/types/bsky' /** * Streamlined MediaPreview component which just handles images, gifs, and videos @@ -21,7 +21,7 @@ export function Embed({ embed: AppBskyFeedDefs.PostView['embed'] style?: StyleProp }) { - const e = parseEmbed(embed) + const e = bsky.post.parseEmbed(embed) if (!e) return null diff --git a/src/types/bsky/index.ts b/src/types/bsky/index.ts index 7354e5bcd8..8d77f9580b 100644 --- a/src/types/bsky/index.ts +++ b/src/types/bsky/index.ts @@ -1,6 +1,7 @@ import {asPredicate} from '@atproto/api' import {ValidationResult} from '@atproto/lexicon' +export * as post from '#/types/bsky/post' export * as profile from '#/types/bsky/profile' export * as starterPack from '#/types/bsky/starterPack'