2024-01-10 11:52:56 +01:00
|
|
|
import { writable } from 'svelte/store';
|
|
|
|
|
|
|
|
function createSurfers() {
|
|
|
|
const { subscribe, set, update } = writable([
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
])
|
|
|
|
return {
|
|
|
|
subscribe,
|
|
|
|
set,
|
|
|
|
update,
|
|
|
|
reset: () => set([
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
{ color: 'gray', priority: '' },
|
|
|
|
]),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export const surfers = createSurfers()
|
|
|
|
|
2024-01-10 12:16:41 +01:00
|
|
|
export const surfersCount = writable(4)
|