mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
23 lines
585 B
TypeScript
23 lines
585 B
TypeScript
import { defineField } from 'sanity';
|
|
import type { SchemaFieldsType } from '../../types';
|
|
import { imageFieldWithOutAltText } from '../basic/image';
|
|
|
|
export const tileFields = [
|
|
defineField({
|
|
name: 'title',
|
|
title: 'Title',
|
|
type: 'string',
|
|
description: 'The title of the tile',
|
|
validation: (Rule) => Rule.required(),
|
|
}),
|
|
defineField({
|
|
name: 'description',
|
|
title: 'Description',
|
|
type: 'string',
|
|
description: 'The text content of the tile',
|
|
}),
|
|
imageFieldWithOutAltText,
|
|
];
|
|
|
|
export type TileSchemaType = SchemaFieldsType<typeof tileFields>;
|