((state) => {
return {
[NAME]: computed(() => `Simple counter: ${state.value}`),
[UI]: (
dec to {previous(state.value)}
Counter is the {nth(state.value)} number
inc to {(state.value ?? 0) + 1}
),
value: state.value,
increment: increment(state),
decrement: decrement(state),
};
});