aboutsummaryrefslogtreecommitdiffstats
path: root/sanity/schemas/contact.ts
blob: 1543e07e8522938f3730a5271083fbb725738686 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import {baseLanguage} from "./_locales";

export default {
  name: "contact",
  type: "document",
  title: "Contact section",
  preview: {
    select: {
      title: `title.${baseLanguage.id}`,
    },
  },
  fields: [
    {
      title: "Address lines",
      name: "addressLines",
      type: "array",
      of: [{type: "localizedString"}],
    },
    {
      title: "Email",
      name: "email",
      type: "string",
    },
    {
      title: "Phone",
      name: "phone",
      type: "string",
    },
    {
      title: "Phone hours",
      name: "phoneHours",
      type: "localizedString",
    },
  ],
};