aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/sanity/schemas/default/faq.ts
blob: 6fb9e713d646337f09f003c79a176cc2e4ed2813 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { s } from "sanity-typed-schema-builder";

export default s.document({
    name: "faq",
    title: "FAQ section",
    // @ts-ignore
    i18n: true,
    fields: [
        {
            name: "title",
            title: "Question",
            type: s.string(),
        },
        {
            name: "answer",
            title: "Answer",
            type: s.array({
                of: [s.block()]
            }),
        }
    ]
})