11import React from 'react' ;
22import { Pattern } from '../CustomCatalog/CustomCard' ;
3+ import { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu' ;
34import CaveatsSection from './CaveatsSection' ;
45import OverviewSection from './OverviewSection' ;
56import RelatedDesigns , { PatternsPerUser } from './RelatedDesigns' ;
@@ -28,6 +29,8 @@ interface RightPanelProps {
2829 fetchingOrgError : boolean ;
2930 showShareAction : boolean ;
3031 handleShare : ( ) => void ;
32+ isVisibilityEnabled : boolean ;
33+ handleVisibilityChange : ( visibility : VIEW_VISIBILITY ) => void ;
3134}
3235
3336const RightPanel : React . FC < RightPanelProps > = ( {
@@ -51,7 +54,9 @@ const RightPanel: React.FC<RightPanelProps> = ({
5154 orgName,
5255 fetchingOrgError,
5356 showShareAction,
54- handleShare
57+ handleShare,
58+ isVisibilityEnabled = false ,
59+ handleVisibilityChange
5560} ) => {
5661 const cleanedType = type . replace ( 'my-' , '' ) . replace ( / s $ / , '' ) ;
5762 const { data : userProfile } = useGetUserProfileByIdQuery ( {
@@ -75,6 +80,8 @@ const RightPanel: React.FC<RightPanelProps> = ({
7580 userProfile = { userProfile }
7681 showShareAction = { showShareAction }
7782 handleShare = { handleShare }
83+ isVisibilityEnabled = { isVisibilityEnabled }
84+ handleVisibilityChange = { handleVisibilityChange }
7885 />
7986 { showCaveats && < CaveatsSection details = { details } /> }
8087 < RelatedDesigns
0 commit comments