import React from 'react'; const pinnedMessages = [ { id: 1, author: 'Anderson', avatar: 'A', gradient: 'linear-gradient(135deg, #ff0000, #0066ff, #ffa500)', badge: 'Founder', time: 'Jan 15, 2026', text: 'Welcome to AeThex Connect! Please read the rules in #rules and introduce yourself in #introductions. The Trinity awaits! 🔥', pinnedBy: 'Anderson', }, { id: 2, author: 'Trevor', avatar: 'T', gradient: 'linear-gradient(135deg, #ff0000, #cc0000)', badge: 'Foundation', time: 'Jan 20, 2026', text: 'Important: Authentication v2.1.0 is now live! All users should update their Passport credentials. Check #updates for migration guide.', pinnedBy: 'Trevor', }, { id: 3, author: 'Sarah', avatar: 'S', gradient: 'linear-gradient(135deg, #ffa500, #ff8c00)', badge: 'Labs', time: 'Feb 1, 2026', text: 'Nexus Engine v2.0 is officially out of beta! Huge thanks to everyone who helped test. Read the changelog in #changelog 🚀', pinnedBy: 'Sarah', }, ]; export default function PinnedMessagesPanel({ channelName, onClose, onJumpToMessage }) { return (
📌 Pinned Messages #{channelName || 'general'}
{pinnedMessages.length === 0 ? (
📌

This channel doesn't have any pinned messages... yet.

) : (
{pinnedMessages.map((msg) => (
{msg.avatar}
{msg.author} {msg.badge && {msg.badge}} {msg.time}
{msg.text}
Pinned by {msg.pinnedBy}
))}
)}
PROTIP: You can pin up to 50 messages in a channel.
); }