diff --git a/assets/js/src/core/modules/notifications/send-notification/components/notification-form/notification-form.tsx b/assets/js/src/core/modules/notifications/send-notification/components/notification-form/notification-form.tsx new file mode 100644 index 0000000000..015166b385 --- /dev/null +++ b/assets/js/src/core/modules/notifications/send-notification/components/notification-form/notification-form.tsx @@ -0,0 +1,74 @@ +/** + * This source file is available under the terms of the + * Pimcore Open Core License (POCL) + * Full copyright and license information is available in + * LICENSE.md which is distributed with this source code. + * + * @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com) + * @license Pimcore Open Core License (POCL) + */ + +import { Form, FormKit, Input, TextArea } from '@sdk/components' +import React from 'react' +import { useTranslation } from 'react-i18next' +import { UserSelect } from '../user-select/user-select' +import { ManyToOneRelation } from '@Pimcore/components/many-to-one-relation' +import { type FormInstance } from 'antd' + +interface NotificationFormProps { + form: FormInstance +} + +export const NotificationForm = ({ form }: NotificationFormProps): React.JSX.Element => { + const { t } = useTranslation() + + return ( + + + { + form.setFieldValue('to', value) + } } + optionFilterProp="label" + placeholder={ t('user-menu.notification.modal.select') } + showSearch + /> + + + + + + +