UNPKG

@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.)

44 lines (36 loc) 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _gi = require("react-icons/gi"); var _coalesceLabel = require("../../../../helpers/coalesceLabel"); var _datatype = require("../../../properties/datatype"); var _object = require("../../../properties/object"); var _default = { name: 'BeginningOfExistence', type: 'document', title: 'Start på eksistens', titleEN: 'Beginning of existence', icon: _gi.GiStarFormation, fields: [_datatype.featured, _object.contributionAssignedBy, _object.timespanSingleton, _object.tookPlaceAt], preview: { select: { contributor: 'contributionAssignedBy.0.assignedActor.label', contributorName: 'contributionAssignedBy.0.usedName.content', edtf: 'timespan.edtf' }, prepare(selection) { var contributor = selection.contributor, contributorName = selection.contributorName, edtf = selection.edtf; var title = "Beginning of existence, by ".concat((0, _coalesceLabel.coalesceLabel)(contributor) || contributorName || 'unknown'); return { title: title, subtitle: edtf }; } } }; exports.default = _default; //# sourceMappingURL=BeginningOfExistence.js.map