import '../components/devvit-form-selection-dropdown.js';
import '../components/devvit-form-selection-list.js';
import { html } from '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
import { renderFieldLabel } from './renderFieldLabel.js';
export const renderSelectionField = (field) => {
    if (field.fieldConfig?.selectionConfig?.renderAsList === true) {
        return html ` <devvit-form-selection-list
      name="${field.fieldId}"
      .field="${field}"
    ></devvit-form-selection-list>`;
    }
    return html `${renderFieldLabel(field)}
    <devvit-form-selection-dropdown
      name="${field.fieldId}"
      .field="${field}"
    ></devvit-form-selection-dropdown>`;
};
//# sourceMappingURL=renderSelectionField.js.map