{replyToEvt &&
}
{editing &&
}
{loadingMedia &&
}
{state.media &&
}
{state.location &&
}
{!inlineButtons && }
{inlineButtons && makeAttachmentButtons()}
{showSendButton && }
>
}
interface ComposerMediaProps {
content: MediaMessageEventContent
clearMedia: false | (() => void)
}
const ComposerMedia = ({ content, clearMedia }: ComposerMediaProps) => {
const [mediaContent, containerClass, containerStyle] = useMediaContent(
content, "m.room.message", { height: 120, width: 360 },
)
return