import { Button, Modal, Stack, Text, TextInput } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import { ModalFooter } from '@ema-platform/ui'; interface Props { opened: boolean; name: string; onNameChange: (value: string) => void; creating: boolean; onClose: () => void; onCreate: () => void; } /** Starts a draft from the live design, or the built-in layout if there is none. */ export function NewVersionModal({ opened, name, onNameChange, creating, onClose, onCreate, }: Props) { const { t } = useTranslation(); return ( onNameChange(e.currentTarget.value)} withAsterisk /> {t( 'designer.newHint', 'Starts from the live design, or the built-in layout if this type has none.', )} ); }