export const unpublishSequence = (id: number | undefined) => () =>
  axios.post(`${API.current.sequencesPath}${id}/unpublish`)
    .then(() => { },
      (err: AxiosErrorResponse) =>
        error(prettyPrintApiErrors(err), { title: t("Unpublish error") }));