import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { Button, IconCopy } from 'twenty-ui'; 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'; const StyledContainer = styled.div` display: flex; flex-direction: row; `; const StyledLinkContainer = styled.div` flex: 1; margin-right: ${({ theme }) => theme.spacing(2)}; `; type ApiKeyInputProps = { apiKey: string }; export const ApiKeyInput = ({ apiKey }: ApiKeyInputProps) => { const theme = useTheme(); const { enqueueSnackBar } = useSnackBar(); return (