import { dialogActions } from "~/store/dialog/dialog-actions";
import { Dispatch } from "redux";
import { RootState } from "~/store/store";
import { ServiceRepository } from "~/services/services";
import { dialogActions } from "~/store/dialog/dialog-actions";
import { Dispatch } from "redux";
import { RootState } from "~/store/store";
import { ServiceRepository } from "~/services/services";
import { FormErrors, reset, startSubmit, stopSubmit } from "redux-form";
import { KeyType } from "~/models/ssh-key";
import {
import { FormErrors, reset, startSubmit, stopSubmit } from "redux-form";
import { KeyType } from "~/models/ssh-key";
import {
export const removeSshKey = (uuid: string) =>
async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
export const removeSshKey = (uuid: string) =>
async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
dispatch(reset(SSH_KEY_CREATE_FORM_NAME));
dispatch(snackbarActions.OPEN_SNACKBAR({
message: "Public key has been successfully created.",
dispatch(reset(SSH_KEY_CREATE_FORM_NAME));
dispatch(snackbarActions.OPEN_SNACKBAR({
message: "Public key has been successfully created.",