2021-02-02 10:34:34 +00:00
|
|
|
import uuid from 'uuid';
|
2019-02-03 11:09:03 +00:00
|
|
|
|
|
|
|
const stores = [
|
|
|
|
{
|
2021-02-02 10:34:34 +00:00
|
|
|
city: 'Aalst',
|
2021-02-01 13:36:26 +00:00
|
|
|
id: 'cc406ed9-fc02-4185-b073-8c12b61b5c79',
|
2019-02-03 11:09:03 +00:00
|
|
|
name: 'Den Olijfboom',
|
2021-02-02 10:34:34 +00:00
|
|
|
number: 38,
|
|
|
|
postalCode: '9300',
|
|
|
|
street: 'Molenstraat',
|
2019-02-03 11:09:03 +00:00
|
|
|
},
|
|
|
|
{
|
2021-02-02 10:34:34 +00:00
|
|
|
city: 'Aalst',
|
2019-02-03 11:09:03 +00:00
|
|
|
id: '5f2919aa-333a-4745-8166-3002ab30de0e',
|
2021-02-02 10:34:34 +00:00
|
|
|
name: 'Pizza Talia',
|
|
|
|
number: 147,
|
|
|
|
postalCode: '9300',
|
|
|
|
street: 'Sint Jobstraat',
|
2019-02-03 11:09:03 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2021-02-02 10:34:34 +00:00
|
|
|
export function createStore({ city, name, number, postalCode, street }) {
|
|
|
|
const newStore = {
|
|
|
|
city,
|
|
|
|
id: uuid(),
|
|
|
|
name,
|
|
|
|
number,
|
|
|
|
postalCode,
|
|
|
|
street,
|
|
|
|
};
|
2019-02-03 11:09:03 +00:00
|
|
|
stores.push(newStore);
|
|
|
|
return newStore;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getStores() {
|
|
|
|
return stores;
|
|
|
|
}
|