setHidden(true)}
style={{
backgroundColor: "var(--block)",
width: "100%",
position: "sticky",
top: "0px",
display: "flex",
zIndex: 2,
justifyContent: "space-between",
borderRadius: "5px",
padding: "8px 8px"
}}>
setHidden(true)} />
{
renderer.pinned_messages.slice().reverse().map((msg, i) => {
if (msg.is_pinned) {
let content = msg.content ? truncateText(msg.content, 220) : ""
pinFound = true
return (
{
// setHidden(true);
if (channel.channel_type === "TextChannel") {
history.push(
`/server/${channel.server_id}/channel/${channel._id}/${msg._id}`,
);
} else {
history.push(`/channel/${channel._id}/${msg._id}`);
}
setHidden(true)
}}
style={{ display: 'flex', paddingTop: "5px" }}
>
)
}
})
}
{!renderer.atTop &&
{
// setHidden(true);
renderer.loadTop()
}}
style={{ display: 'flex', paddingTop: "5px", justifyContent: "center" }}>
{/* */}
}