/* eslint-disable bsky-internal/avoid-unwrapped-text */ import {ChatBskyGroupDefs} from '@atproto/api' import {Img} from './Img.js' export const CHAT_INVITE_HEIGHT = 630 export const CHAT_INVITE_WIDTH = 1200 const PADDING = 64 export function ChatInvite({ preview, ownerImage, }: { preview: ChatBskyGroupDefs.JoinLinkPreviewView ownerImage: Buffer | null }) { return (
{/* Avatar */}
{ownerImage && }
{/* Spacer pushes the text block to the bottom-left */}
{/* Group Chat row */}
Group Chat
{/* Chat name */}
{preview.name}
{/* By @handle */}
{'By @' + preview.owner.handle}
) } function ChatIcon(props: React.SVGProps) { return ( ) } function Background(props: React.SVGProps) { return ( ) }