import styled from '@emotion/styled'; import { H2Title, IconLock, Section, Tag } from 'twenty-ui'; import { AdvancedSettingsWrapper } from '@/settings/components/AdvancedSettingsWrapper'; import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer'; import { SettingsReadDocumentationButton } from '@/settings/developers/components/SettingsReadDocumentationButton'; import { SettingsSSOIdentitiesProvidersListCard } from '@/settings/security/components/SettingsSSOIdentitiesProvidersListCard'; import { SettingsSecurityOptionsList } from '@/settings/security/components/SettingsSecurityOptionsList'; import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath'; import { SettingsPath } from '@/types/SettingsPath'; import { SubMenuTopBarContainer } from '@/ui/layout/page/components/SubMenuTopBarContainer'; import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import { isSSOEnabledState } from '@/client-config/states/isSSOEnabledState'; import { useRecoilValue } from 'recoil'; const StyledContainer = styled.div` width: 100%; `; const StyledMainContent = styled.div` display: flex; flex-direction: column; gap: ${({ theme }) => theme.spacing(10)}; min-height: 200px; `; const StyledSSOSection = styled(Section)` flex-shrink: 0; `; export const SettingsSecurity = () => { const isSSOEnabled = useRecoilValue(isSSOEnabledState); const isSSOSectionDisplay = useIsFeatureEnabled('IS_SSO_ENABLED') && isSSOEnabled; return ( } links={[ { children: 'Workspace', href: getSettingsPagePath(SettingsPath.Workspace), }, { children: 'Security' }, ]} > {isSSOSectionDisplay && ( } /> )}
); };