Manta Developers
GitHub
Menu

@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?

optional chat?: ReactNode

chatOpen?

optional chatOpen?: boolean

children?

optional children?: ReactNode

className?

optional className?: string

optional header?: ReactNode

headerRight?

optional headerRight?: ReactNode

isAdmin?

optional isAdmin?: boolean

notifications?

optional notifications?: ReactNode

onCloseChat?

optional onCloseChat?: () => void

Returns

void

skipChatEntryAnimation?

optional skipChatEntryAnimation?: 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?

optional chatOpen?: boolean

initialWidth

initialWidth: number

maxWidthRatio?

optional maxWidthRatio?: number

minWidth

minWidth: number

onCloseChat?

optional onCloseChat?: () => void

Returns

void

Variables

chatPanelWidth

const chatPanelWidth: 552 = 552


mainHeaderMargin

const mainHeaderMargin: 14 = 14

Functions

ChatPanel()

ChatPanel(__namedParameters): Element

Parameters

__namedParameters

ChatPanelArgs

Returns

Element


MainContent()

MainContent(props): Element

Parameters

props

MainContentProps

Returns

Element


useChatPanelInteractions()

useChatPanelInteractions(args): object

Parameters

args

UseChatPanelInteractionsArgs

Returns

object

chatPanelRef

chatPanelRef: RefObject<HTMLDivElement | null>

handleResizeStart

handleResizeStart: (event) => void

Parameters
event

MouseEvent<HTMLDivElement>

Returns

void

panelWidth

panelWidth: number


useMainContentSizing()

useMainContentSizing(): MainContentSizing

Returns

MainContentSizing