Add store

This commit is contained in:
Vadim
2021-01-20 10:49:20 +03:00
parent b77e85cf74
commit 613f00b8bc
7 changed files with 97 additions and 7 deletions

View File

@@ -1,5 +1,8 @@
<script>
// TODO: rename image carousel to just carousel
import { onMount } from 'svelte'
import { store } from './store'
/**
* Enable Next/Previos arrows
*/
@@ -12,10 +15,11 @@
})
function handleLeftClick() {
// TODO: implement
store.prev()
}
// TODO: rename to handleNextClick
function handleRightClick() {
// TODO: implement
store.next()
}
</script>