-
-
- {asEditor ? (
- onChange({ ...value, url: val })}
- height={size === 'md' ? '38px' : '30px'}
- extensions={[
- liquid({
- variables: [{ type: 'variable', label: 'asdf' }],
- }),
- EditorView.lineWrapping,
- ]}
- />
- ) : (
- onChange({ ...value, url: e.target.value })}
- {...rest}
- />
- )}
-
-
-
-
- );
-});
diff --git a/apps/dashboard/src/components/workflow-editor/action-picker.tsx b/apps/dashboard/src/components/workflow-editor/action-picker.tsx
deleted file mode 100644
index 6a41c7c397c..00000000000
--- a/apps/dashboard/src/components/workflow-editor/action-picker.tsx
+++ /dev/null
@@ -1,247 +0,0 @@
-import { ComponentProps } from 'react';
-import { zodResolver } from '@hookform/resolvers/zod';
-import { useForm } from 'react-hook-form';
-import { RiEdit2Line, RiExpandUpDownLine, RiForbid2Line } from 'react-icons/ri';
-import { z } from 'zod';
-import { liquid } from '@codemirror/lang-liquid';
-import { EditorView } from '@uiw/react-codemirror';
-import { RedirectTargetEnum } from '@novu/shared';
-import { Button, buttonVariants } from '@/components/primitives/button';
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuTrigger,
-} from '@/components/primitives/dropdown-menu';
-import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from '@/components/primitives/form/form';
-import { InputField } from '@/components/primitives/input';
-import { Popover, PopoverContent, PopoverTrigger } from '@/components/primitives/popover';
-import { Separator } from '@/components/primitives/separator';
-import { URLInput } from '@/components/primitives/url-input';
-import { cn } from '@/utils/ui';
-import { urlTargetTypes } from '@/utils/url';
-import { Editor } from '../primitives/editor';
-
-type Action = {
- label: string;
- redirect: {
- url: string;
- type: string;
- };
-};
-
-type Actions = {
- primaryAction?: Action;
- secondaryAction?: Action;
-};
-
-type ActionPickerProps = {
- className?: string;
- value: Actions | undefined;
- onChange: (value: Actions) => void;
-};
-
-export const ActionPicker = (props: ActionPickerProps) => {
- const { className, value, onChange } = props;
- const primaryAction = value?.primaryAction;
- const secondaryAction = value?.secondaryAction;
-
- return (
-