@manta-eu/react/main-content
Reference for @manta-eu/react/main-content as it is on main.
Type Aliases
ChatPanelArgs
ChatPanelArgs =
object
Properties
children
children:
ReactNode
MainContentProps
MainContentProps =
object& ({filters:ReactNode;fullPage:true; } | {filters?:never;fullPage?:boolean; })
Type Declaration
chat?
optionalchat?:ReactNode
chatOpen?
optionalchatOpen?:boolean
children?
optionalchildren?:ReactNode
className?
optionalclassName?:string
header?
optionalheader?:ReactNode
headerRight?
optionalheaderRight?:ReactNode
isAdmin?
optionalisAdmin?:boolean
notifications?
optionalnotifications?:ReactNode
onCloseChat?
optionalonCloseChat?: () =>void
Returns
void
skipChatEntryAnimation?
optionalskipChatEntryAnimation?:boolean
MainContentSizing
MainContentSizing =
object
Properties
availableContentHeight
availableContentHeight:
number
fullPageFilterHeight
fullPageFilterHeight:
number
headerHeight
headerHeight:
number
notificationsHeight
notificationsHeight:
number
totalHeight
totalHeight:
number
UseChatPanelInteractionsArgs
UseChatPanelInteractionsArgs =
object
Properties
chatOpen?
optionalchatOpen?:boolean
initialWidth
initialWidth:
number
maxWidthRatio?
optionalmaxWidthRatio?:number
minWidth
minWidth:
number
onCloseChat?
optionalonCloseChat?: () =>void
Returns
void
Variables
chatPanelWidth
constchatPanelWidth:552=552
mainHeaderMargin
constmainHeaderMargin:14=14
Functions
ChatPanel()
ChatPanel(
__namedParameters):Element
Parameters
__namedParameters
Returns
Element
MainContent()
MainContent(
props):Element
Parameters
props
Returns
Element
useChatPanelInteractions()
useChatPanelInteractions(
args):object
Parameters
args
Returns
object
chatPanelRef
chatPanelRef:
RefObject<HTMLDivElement|null>
handleResizeStart
handleResizeStart: (
event) =>void
Parameters
event
MouseEvent<HTMLDivElement>
Returns
void
panelWidth
panelWidth:
number
useMainContentSizing()
useMainContentSizing():
MainContentSizing