import { jsx as _jsx } from "react/jsx-runtime";
/*!
 * Copyright (c) Microsoft. All rights reserved.
 * Licensed under the MIT license. See LICENSE file in the project.
 */ import { Dropdown } from '@fluentui/react';
import { memo } from 'react';
import { useEnumDropdownOptions } from './EnumDropdown.hooks.js';
import { opDropdownStyles } from './EnumDropdown.styles.js';
/**
 * Dropdown wrapper to list out aggregation operations.
 */ export const EnumDropdown = /*#__PURE__*/ memo(function EnumDropdown(props) {
    const options = useEnumDropdownOptions(props.enumeration, props.labels);
    return /*#__PURE__*/ _jsx(Dropdown, {
        options: options,
        styles: opDropdownStyles,
        ...props
    });
});
