import { appearancePropsMap } from './appearancePropsMap';
export const getButtonGroupOption = (intl, areAnyNewToolbarFlagsEnabled, dispatchCommand, {
  disabled,
  onClick,
  selected,
  appearance,
  testId,
  tooltip
}) => {
  const {
    title,
    icon
  } = appearancePropsMap[appearance !== null && appearance !== void 0 ? appearance : 'url'];
  return {
    title: intl.formatMessage(title),
    icon,
    onClick: () => dispatchCommand(onClick),
    disabled: Boolean(disabled),
    tooltipContent: tooltip || null,
    testId,
    selected,
    areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
  };
};
// eslint-disable-next-line @atlaskit/editor/no-re-export
export { appearancePropsMap } from './appearancePropsMap';