feat: add cart notification effector store
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { createEvent, createStore } from 'effector'
|
||||
|
||||
export const cartAdded = createEvent()
|
||||
export const cartDismissed = createEvent()
|
||||
|
||||
export const $cartSnackOpen = createStore(false)
|
||||
.on(cartAdded, () => true)
|
||||
.on(cartDismissed, () => false)
|
||||
Reference in New Issue
Block a user