diff --git a/apps/frontend/src/components/launches/internal.channels.tsx b/apps/frontend/src/components/launches/internal.channels.tsx index aa6f2af3..17c91bf2 100644 --- a/apps/frontend/src/components/launches/internal.channels.tsx +++ b/apps/frontend/src/components/launches/internal.channels.tsx @@ -7,6 +7,8 @@ import { PickPlatforms } from '@gitroom/frontend/components/launches/helpers/pic import { useIntegration } from '@gitroom/frontend/components/launches/helpers/use.integration'; import { Select } from '@gitroom/react/form/select'; import { Slider } from '@gitroom/react/form/slider'; +import { Input } from '@gitroom/react/form/input'; +import { Textarea } from '@gitroom/react/form/textarea'; import { useSettings } from '@gitroom/frontend/components/launches/helpers/use.values'; import clsx from 'clsx'; import { useT } from '@gitroom/react/translation/get.transation.service.client'; @@ -68,6 +70,37 @@ export const InternalChannels: FC<{ ); }; +const PlugField: FC<{ + plugIdentifier: string; + field: { + name: string; + description: string; + type: string; + placeholder: string; + validation?: RegExp; + }; +}> = ({ plugIdentifier, field }) => { + const fieldName = `plug--${plugIdentifier}--${field.name}`; + + if (field.type === 'textarea') { + return ( +