19 lines
412 B
TypeScript
19 lines
412 B
TypeScript
|
import { IoDocumentOutline } from 'react-icons/io5'
|
||
|
import { defineField, defineType } from 'sanity'
|
||
|
|
||
|
export default defineType({
|
||
|
name: 'faqTopic',
|
||
|
title: 'FAQ Topic',
|
||
|
icon: IoDocumentOutline,
|
||
|
type: 'document',
|
||
|
fields: [
|
||
|
defineField({
|
||
|
name: 'name',
|
||
|
title: 'Title',
|
||
|
description: 'Judul topik FAQ',
|
||
|
type: 'string',
|
||
|
validation: (rule) => rule.required(),
|
||
|
}),
|
||
|
],
|
||
|
})
|