@seidhr/sanity-plugin-muna-schemas
Version:
Muna or ᛗᚢᚾᚨ means remember in norse. Muna is a schema for the Sanity Studio that enables detailed descriptions of cultural heritage objects and knowledge about their contexts as well as pages about them (or anything else really.)
48 lines (45 loc) • 1.08 kB
JavaScript
import React from 'react';
import { BsFillQuestionCircleFill } from 'react-icons/bs';
import { Link } from 'part:@sanity/base/router';
export const subject = {
name: 'subject',
title: 'Emne',
titleEN: 'Subject',
description: (
<span>
Emneord knyttet til dette objektet. Legg til{' '}
<Link target="blank" href={'/desk/steder'}>
nye emneord
</Link>
.{' '}
<Link target="blank" href={'https://muna.xyz/docs/model/properties#subject'}>
<BsFillQuestionCircleFill />
</Link>
</span>
),
descriptionEN: (
<span>
Subjects related to this object. Add{' '}
<Link target="blank" href={'/desk/steder'}>
new subjects
</Link>
.{' '}
<Link target="blank" href={'https://muna.xyz/docs/model/properties#subject'}>
<BsFillQuestionCircleFill />
</Link>
</span>
),
type: 'array',
of: [
{
type: 'reference',
to: [{ type: 'Concept' }],
},
],
options: {
semanticSanity: {
'@container': '@set',
'@type': '@id'
}
},
};