koel/resources/assets/js/stores/visualizerStore.ts

12 lines
233 B
TypeScript
Raw Normal View History

2022-11-06 17:09:06 +00:00
import { visualizers } from '@/config'
export const visualizerStore = {
get all () {
return visualizers
},
getVisualizerById (id: Visualizer['id']) {
2022-11-06 17:09:06 +00:00
return visualizers.find(visualizer => visualizer.id === id)
},
2022-11-06 17:09:06 +00:00
}