const LOGGED_IN = "logged_in";
const NOT_LOGGED_IN = "not_logged_in";

const MSG_LOGIN_SUCCESS = "login success";

const BACKEND_HOST = "localhost:3001";

const VIEW_STATE_ADD_NOTE = "view_state_add_note";
const VIEW_STATE_VIEW_NOTE = "view_state_view_note";
const VIEW_STATE_EMPTY_NOTE = "view_state_empty_note";
const VIEW_STATE_EDIT_NOTE = "view_state_edit_note";

// ENDPOINTS
const ADD_NEW_NOTE_ENDPOINT = `${BACKEND_HOST}/addnote`;
const GET_NOTE_ENDPOINT = `${BACKEND_HOST}/getnote`;
const DELETE_NOTE_ENDPOINT = `${BACKEND_HOST}/deletenote`;
const SAVE_NOTE_ENDPOINT = `${BACKEND_HOST}/savenote`;
const LOGOUT_URL = `${BACKEND_HOST}/logout`;
const SIGN_IN_URL = `${BACKEND_HOST}/signin`;
const SEARCH_URL = `${BACKEND_HOST}/searchnotes`;

export default {
  ADD_NEW_NOTE_ENDPOINT,
  BACKEND_HOST,
  LOGGED_IN,
  MSG_LOGIN_SUCCESS,
  NOT_LOGGED_IN,
  VIEW_STATE_ADD_NOTE,
  VIEW_STATE_EMPTY_NOTE,
  VIEW_STATE_VIEW_NOTE,
  VIEW_STATE_EDIT_NOTE,
  GET_NOTE_ENDPOINT,
  DELETE_NOTE_ENDPOINT,
  SAVE_NOTE_ENDPOINT,
  LOGOUT_URL,
  SIGN_IN_URL,
  SEARCH_URL,
};
