import {type StyleProp, type ViewStyle} from 'react-native' import {type AppBskyEmbedExternal} from '@atproto/api' import {atoms as a} from '#/alf' import * as ChatInvite from '#/components/dms/ChatInvite' import {ExternalEmbed} from '#/components/Post/Embed/ExternalEmbed' import {JoinRequestEmbedBody} from '#/components/Post/Embed/JoinRequestEmbed' /** * Renders a chat invite link found in an `app.bsky.embed.external` embed (e.g. * a `bsky.app/c/` link posted to the feed) as a join request card, * falling back to a plain external embed if the invite can't be resolved. */ export function ChatInviteEmbed({ code, link, onOpen, style, }: { code: string link: AppBskyEmbedExternal.ViewExternal onOpen?: () => void style?: StyleProp }) { return ( ) } function ChatInviteEmbedBody({ link, onOpen, style, }: { link: AppBskyEmbedExternal.ViewExternal onOpen?: () => void style?: StyleProp }) { const {error} = ChatInvite.useChatInvite() if (error) { return } return }