import type { ICommandBarProps } from '@fluentui/react/lib/CommandBar'; import type { LocalizedStrings } from '../../common/type/LocalizedStrings'; import type { RibbonPlugin } from './RibbonPlugin'; import type { RibbonButton } from './RibbonButton'; /** * Properties of Ribbon component */ export interface RibbonProps extends Partial { /** * The ribbon plugin used for connect editor and the ribbon */ plugin: RibbonPlugin; /** * Buttons in this ribbon */ buttons: RibbonButton[]; /** * A dictionary of localized strings for all buttons. * Key of the dictionary is the key of each button, value will be the string or a function to return the string */ strings?: LocalizedStrings; }