/* @license Enterprise */ import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { TextInput } from '@/ui/input/components/TextInput'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { Controller, useFormContext } from 'react-hook-form'; import { Button, H2Title, IconCopy, Section } from 'twenty-ui'; import { REACT_APP_SERVER_BASE_URL } from '~/config'; const StyledInputsContainer = styled.div` display: flex; flex-direction: column; gap: ${({ theme }) => theme.spacing(2, 4)}; width: 100%; `; const StyledContainer = styled.div` display: flex; flex-direction: row; `; const StyledLinkContainer = styled.div` flex: 1; margin-right: ${({ theme }) => theme.spacing(2)}; `; const StyledButtonCopy = styled.div` align-items: end; display: flex; `; export const SettingsSSOOIDCForm = () => { const { control } = useFormContext(); const { enqueueSnackBar } = useSnackBar(); const theme = useTheme(); const authorizedUrl = window.location.origin; const redirectionUrl = `${REACT_APP_SERVER_BASE_URL}/auth/oidc/callback`; return ( <>
( )} /> ( )} /> ( )} />
); };