MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / Header

Function Header

apps/web/ui/Thread/Header/index.tsx:54–102  ·  view source on GitHub ↗
({
  thread,
  manage,
  expanded,
  breadcrumb,
  onClose,
  onExpandClick,
  onSetTitle,
  sidebar,
}: Props)

Source from the content-addressed store, hash-verified

52}
53
54export default function Header({
55 thread,
56 manage,
57 expanded,
58 breadcrumb,
59 onClose,
60 onExpandClick,
61 onSetTitle,
62 sidebar,
63}: Props) {
64 const { title, state } = thread;
65 return (
66 <StickyHeader
67 className={classNames({
68 [styles.expanded]: expanded,
69 })}
70 >
71 <div className={styles.container}>
72 <div className={styles.center}>
73 <div className={styles.header}>
74 <Navigation
75 breadcrumb={breadcrumb}
76 onClose={onClose}
77 onExpandClick={onExpandClick}
78 />
79 <div>
80 <Title
81 title={title}
82 state={state}
83 manage={manage}
84 onSetTitle={onSetTitle}
85 />
86 <div className={styles.channelName}>
87 # {' ' + thread.channel?.channelName}
88 </div>
89 </div>
90 </div>
91 </div>
92 <div className={styles.icons}>
93 {sidebar && (
94 <Icon onClick={onClose}>
95 <FiX />
96 </Icon>
97 )}
98 </div>
99 </div>
100 </StickyHeader>
101 );
102}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected