rename config context to menu context; move config to state
This commit is contained in:
1 parent
20c59affd7
commit
945947aa22
8 files changed
+45
-36
No files matched your search
@@ -0,0 +1,50 @@
|
||||
import { proxy } from "valtio"
|
||||
|
||||
const currentYear = () => (new Date()).getFullYear()
|
||||
|
||||
type Contact = {
|
||||
type: string
|
||||
value: string
|
||||
title: string
|
||||
}
|
||||
|
||||
type State = {
|
||||
years: [number, number]
|
||||
contacts: Contact[]
|
||||
}
|
||||
|
||||
export const state = proxy<State>({
|
||||
years: [2012, currentYear()],
|
||||
contacts: [
|
||||
{
|
||||
type: "link",
|
||||
value: "https://yandex.ru/maps/-/CKUkAXIb",
|
||||
title: "г. Шлиссельбург ул. 18 января д. 3",
|
||||
},
|
||||
{
|
||||
type: "tel",
|
||||
value: "tel:+78136276312",
|
||||
title: "+7 (81362) 76-312",
|
||||
},
|
||||
{
|
||||
type: "email",
|
||||
value: "mailto:hudozka@gmail.com",
|
||||
title: "hudozka@gmail.com",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
value: "https://clck.ru/H83zS",
|
||||
title: "Навигатор дополнительного образования ЛО",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
value: "https://vk.com/shlisselburghudozka",
|
||||
title: "Вконтакте",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
value: "https://www.instagram.com/hudozka",
|
||||
title: "Инстаграм",
|
||||
},
|
||||
],
|
||||
})
|
||||
Reference in new issue
Block a user