1
1
import React from 'react' ;
2
2
import { Pattern } from '../CustomCatalog/CustomCard' ;
3
+ import { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu' ;
3
4
import CaveatsSection from './CaveatsSection' ;
4
5
import OverviewSection from './OverviewSection' ;
5
6
import RelatedDesigns , { PatternsPerUser } from './RelatedDesigns' ;
@@ -28,6 +29,8 @@ interface RightPanelProps {
28
29
fetchingOrgError : boolean ;
29
30
showShareAction : boolean ;
30
31
handleShare : ( ) => void ;
32
+ isVisibilityEnabled : boolean ;
33
+ handleVisibilityChange : ( visibility : VIEW_VISIBILITY ) => void ;
31
34
}
32
35
33
36
const RightPanel : React . FC < RightPanelProps > = ( {
@@ -51,7 +54,9 @@ const RightPanel: React.FC<RightPanelProps> = ({
51
54
orgName,
52
55
fetchingOrgError,
53
56
showShareAction,
54
- handleShare
57
+ handleShare,
58
+ isVisibilityEnabled = false ,
59
+ handleVisibilityChange
55
60
} ) => {
56
61
const cleanedType = type . replace ( 'my-' , '' ) . replace ( / s $ / , '' ) ;
57
62
const { data : userProfile } = useGetUserProfileByIdQuery ( {
@@ -75,6 +80,8 @@ const RightPanel: React.FC<RightPanelProps> = ({
75
80
userProfile = { userProfile }
76
81
showShareAction = { showShareAction }
77
82
handleShare = { handleShare }
83
+ isVisibilityEnabled = { isVisibilityEnabled }
84
+ handleVisibilityChange = { handleVisibilityChange }
78
85
/>
79
86
{ showCaveats && < CaveatsSection details = { details } /> }
80
87
< RelatedDesigns
0 commit comments