Initialize groups panel store and view component
[arvados.git] / src / store / rich-text-editor-dialog / rich-text-editor-dialog-actions.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Dispatch } from "redux";
6 import { dialogActions } from "~/store/dialog/dialog-actions";
7
8 export const RICH_TEXT_EDITOR_DIALOG_NAME = 'richTextEditorDialogName';
9 export const openRichTextEditorDialog = (title: string, text: string) => 
10     dialogActions.OPEN_DIALOG({ id: RICH_TEXT_EDITOR_DIALOG_NAME, data: { title, text } });