import { h } from 'preact'; import PropTypes from 'prop-types'; import { Dropdown, Button } from '@crayons'; export const Options = ({ passedData: { published = false, allSeries = [], canonicalUrl = '', series = '', }, onSaveDraft, onConfigChange, toggleMoreConfig, moreConfigShowing, }) => { let publishedField = ''; let existingSeries = ''; if (allSeries.length > 0) { const seriesNames = allSeries.map((name) => { return ( ); }); existingSeries = (
Existing series: {` `} {seriesNames}
); } if (published) { publishedField = (
Change meta tag
{` `}
canonical_url
{` `}
if this post was first published elsewhere (like your own blog).
Will this post be part of a series? Give the series a unique name. (Series visible once it has multiple posts)
{existingSeries}