import styled from '@emotion/styled'; import { H2Title } from '@/ui/display/typography/components/H2Title'; import { TextArea } from '@/ui/input/components/TextArea'; import { TextInput } from '@/ui/input/components/TextInput'; import { Section } from '@/ui/layout/section/components/Section'; type SettingsObjectFormSectionProps = { disabled?: boolean; singularName?: string; pluralName?: string; description?: string; onChange?: ( formValues: Partial<{ labelSingular: string; labelPlural: string; description: string; }>, ) => void; }; const StyledInputsContainer = styled.div` display: flex; gap: ${({ theme }) => theme.spacing(2)}; margin-bottom: ${({ theme }) => theme.spacing(2)}; width: 100%; `; export const SettingsObjectFormSection = ({ disabled, singularName = '', pluralName = '', description = '', onChange, }: SettingsObjectFormSectionProps) => (
onChange?.({ labelSingular: value })} disabled={disabled} fullWidth /> onChange?.({ labelPlural: value })} disabled={disabled} fullWidth />