Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32089124
chat-thread-list-see-more-sidebars.react.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
chat-thread-list-see-more-sidebars.react.js
View Options
// @flow
import
classNames
from
'classnames'
;
import
*
as
React
from
'react'
;
import
{
IoIosMore
}
from
'react-icons/io/index.js'
;
import
{
useModalContext
}
from
'lib/components/modal-provider.react.js'
;
import
type
{
ThreadInfo
}
from
'lib/types/minimally-encoded-thread-permissions-types.js'
;
import
css
from
'./chat-thread-list.css'
;
import
SidebarsModal
from
'../modals/threads/sidebars/sidebars-modal.react.js'
;
type
Props
=
{
+
threadInfo
:
ThreadInfo
,
+
unread
:
boolean
,
};
function
ChatThreadListSeeMoreSidebars
(
props
:
Props
)
:
React
.
Node
{
const
{
unread
,
threadInfo
}
=
props
;
const
{
pushModal
,
popModal
}
=
useModalContext
();
const
onClick
=
React
.
useCallback
(
()
=>
pushModal
(
<
SidebarsModal
defaultTab
=
"My Threads"
threadID
=
{
threadInfo
.
id
}
onClose
=
{
popModal
}
/>
,
),
[
popModal
,
pushModal
,
threadInfo
.
id
],
);
return
(
<
a
className
=
{
classNames
(
css
.
thread
,
css
.
sidebar
)}
onClick
=
{
onClick
}
>
<
div
className
=
{
css
.
threadButton
}
>
<
div
className
=
{
classNames
({
[
css
.
sidebarTitle
]
:
true
,
[
css
.
seeMoreButton
]
:
true
,
[
css
.
unread
]
:
unread
,
})}
>
<
IoIosMore
size
=
"22px"
/>
<
div
className
=
{
css
.
seeMoreText
}
>
See
more
...
<
/div>
<
/div>
<
/div>
<
/a>
);
}
export
default
ChatThreadListSeeMoreSidebars
;
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Dec 7, 7:55 AM (4 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5619702
Default Alt Text
chat-thread-list-see-more-sidebars.react.js (1 KB)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment