import React from 'react' export default function WorldRecurrenceHelper({ enabled, recurrenceKey, editionYear, recurrenceKeyError, editionYearError }) { if (!enabled) { return (
Turn on recurrence when this world belongs to a campaign family such as Halloween, Retro Month, or Pixel Week and needs a reusable edition pattern.
) } const exampleKey = recurrenceKey || 'halloween' const exampleYear = editionYear || new Date().getFullYear() return (
Recurring world guidance

Use the recurrence key to identify the campaign family. Example: {exampleKey}.

Use the edition year for the specific annual or seasonal instance. Example: {exampleYear}.

Example output: {exampleKey === '' ? 'Halloween' : exampleKey.replace(/-/g, ' ')} {exampleYear} is part of the recurring world {exampleKey}.

{recurrenceKeyError || editionYearError ? (
{recurrenceKeyError || editionYearError}
) : null}
) }