Can not access Action inside component

Good day to all,
I have a problem with store.

I define store with state, action and mutation. I can access a state in component but I cannot see action. bzw. I get this error

[vuex] unknown action type: logout

in store file:

import { createStore } from "vuex";

const store = createStore({
  state: {
     user: {
     data: {},
     token: 3,
    },
  },
  getters: {},
  action: {
    logout({commit}) {
      commit('logout')
    }
},
mutations: {
  logout: (state) => {
    state.user.token = null;
    state.user.data = {};
    },
  },
});

export default store;

in component file:

import store from '../plugins/store';

const userToken = store.state.user.token

function ClickMe(){

store.dispatch('logout');

}

</script>

You wrote action, should be actions (with an s at the end).