import { ButtonHTMLAttributes, ReactNode } from 'react'; /** * Props for the 'Item' component. * * @author Malik Alimoekhamedov * @interface */ interface ItemProps extends ButtonHTMLAttributes { readonly icon?: ReactNode; /** * Indicates whether the option is currently active or in focus. * Generally, this will be reflected in the UI through some sort * of visual feedback. * * Defaults to false. */ readonly isActive?: boolean; /** * Indicates whether the elements that otherwise would have been revealed * by pressing on current item have been modified and thus no longer * represent their default values. Generally, this means that the item * should provide some specific visual feedback indicating that something * was modified. * * Defaults to false. */ readonly isDirty?: boolean; readonly title: string; } export type { ItemProps };