Skip to content

The open alternative to Salesforce, designed for AI.

717 B
Raw Blame
import {
  TitleInput,
  type TitleInputProps,
} from '@/ui/input/components/TitleInput';
import { styled } from '@linaria/react';
import { themeCssVariables } from 'twenty-ui/theme';

const StyledTitleInputContainer = styled.div`
  max-width: 420px;
  min-width: 0;
  width: fit-content;
`;

export type SettingsEditableTitleProps = TitleInputProps;

export const SettingsEditableTitle = (props: SettingsEditableTitleProps) => (
  <StyledTitleInputContainer>
    <TitleInput
      // oxlint-disable-next-line react/jsx-props-no-spreading
      {...props}
      sizeVariant={props.sizeVariant ?? 'sm'}
      textColor={props.textColor ?? themeCssVariables.font.color.primary}
    />
  </StyledTitleInputContainer>
);