Replace other usages of old post-embeds

This commit is contained in:
Eric Bailey
2025-03-01 15:30:43 -06:00
parent 2b6924b9d3
commit 55a0a5126d
4 changed files with 17 additions and 7 deletions
+3 -1
View File
@@ -38,6 +38,8 @@ import {ListEmbed} from './ListEmbed'
import {PostPlaceholder as PostPlaceholderText} from './PostPlaceholder'
import {CommonProps, EmbedProps} from './types'
export {PostEmbedViewContext, QuoteEmbedViewContext} from './types'
export function Embed({embed: rawEmbed, ...rest}: EmbedProps) {
const embed = parseEmbed(rawEmbed)
@@ -206,7 +208,7 @@ export function PostDetachedEmbed({
* Nests parent `Embed` component and therefore must live in this file to avoid
* circular imports.
*/
function QuoteEmbed({
export function QuoteEmbed({
embed,
onOpen,
style,
+9 -1
View File
@@ -1,7 +1,15 @@
import {StyleProp, ViewStyle} from 'react-native'
import {AppBskyFeedDefs, ModerationDecision} from '@atproto/api'
import {PostEmbedViewContext} from '#/view/com/util/post-embeds/types'
export enum PostEmbedViewContext {
ThreadHighlighted = 'ThreadHighlighted',
Feed = 'Feed',
FeedEmbedRecordWithMedia = 'FeedEmbedRecordWithMedia',
}
export enum QuoteEmbedViewContext {
FeedEmbedRecordWithMedia = PostEmbedViewContext.FeedEmbedRecordWithMedia,
}
export type CommonProps = {
moderation?: ModerationDecision