mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
16 lines
422 B
TypeScript
16 lines
422 B
TypeScript
import { defineField } from 'sanity';
|
|
import type { SchemaFieldsType } from '../../types';
|
|
import { urlField } from '../basic/url';
|
|
|
|
export const linkFields = [
|
|
defineField({
|
|
name: 'label',
|
|
type: 'string',
|
|
title: 'Label',
|
|
description: 'The label of the link. If none is provided, the full link will be used.',
|
|
}),
|
|
urlField,
|
|
];
|
|
|
|
export type LinkFieldsSchemaType = SchemaFieldsType<typeof linkFields>;
|