From 6812584b8c8ed62edff4c727c60c119b1f7f23e5 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 15 Oct 2025 00:53:22 +0200 Subject: [PATCH] feat: extend ThreePaneLayout with showSupport and support slot --- src/components/ThreePaneLayout.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/ThreePaneLayout.tsx b/src/components/ThreePaneLayout.tsx index 8c115cec..016f3650 100644 --- a/src/components/ThreePaneLayout.tsx +++ b/src/components/ThreePaneLayout.tsx @@ -32,6 +32,7 @@ interface ThreePaneLayoutProps { showExplore?: boolean showMe?: boolean showProfile?: boolean + showSupport?: boolean // Bookmarks pane bookmarks: Bookmark[] @@ -93,6 +94,9 @@ interface ThreePaneLayoutProps { // Optional Profile content profile?: React.ReactNode + + // Optional Support content + support?: React.ReactNode } const ThreePaneLayout: React.FC = (props) => { @@ -225,8 +229,8 @@ const ThreePaneLayout: React.FC = (props) => { return ( <> - {/* Mobile bookmark button - only show when viewing article (not on settings/explore/me/profile) */} - {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && !props.showSettings && !props.showExplore && !props.showMe && !props.showProfile && ( + {/* Mobile bookmark button - only show when viewing article (not on settings/explore/me/profile/support) */} + {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && !props.showSettings && !props.showExplore && !props.showMe && !props.showProfile && !props.showSupport && ( )} - {/* Mobile highlights button - only show when viewing article (not on settings/explore/me/profile) */} - {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && !props.showSettings && !props.showExplore && !props.showMe && !props.showProfile && ( + {/* Mobile highlights button - only show when viewing article (not on settings/explore/me/profile/support) */} + {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && !props.showSettings && !props.showExplore && !props.showMe && !props.showProfile && !props.showSupport && (