import { h } from 'preact'; import PropTypes from 'prop-types'; import { ArticleCoverImage } from './ArticleCoverImage'; import { TagsField } from './TagsField'; import { Title } from './Title'; export const Meta = ({ titleDefaultValue, titleOnChange, tagsDefaultValue, tagsOnInput, mainImage, onMainImageUrlChange, switchHelpContext, }) => { return (
<TagsField defaultValue={tagsDefaultValue} onInput={tagsOnInput} switchHelpContext={switchHelpContext} /> </div> ); }; Meta.propTypes = { titleDefaultValue: PropTypes.string.isRequired, titleOnChange: PropTypes.func.isRequired, tagsDefaultValue: PropTypes.string.isRequired, tagsOnInput: PropTypes.func.isRequired, mainImage: PropTypes.string, onMainImageUrlChange: PropTypes.func.isRequired, switchHelpContext: PropTypes.func.isRequired, }; Meta.displayName = 'Meta';