Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-05-13 19:00:42 +02:00
parent a58c52631e
commit cb3a900d39
639 changed files with 1185 additions and 887 deletions

View File

@ -4,7 +4,7 @@ import { useHistory } from 'react-router-dom';
import { Counter, Icon } from '../ui';
export interface MenuItem {
interface MenuItem {
action?: React.EventHandler<React.KeyboardEvent | React.MouseEvent>;
active?: boolean;
count?: number;
@ -106,4 +106,4 @@ const DropdownMenuItem = ({ index, item, onClick }: IDropdownMenuItem) => {
);
};
export default DropdownMenuItem;
export { type MenuItem, DropdownMenuItem as default };

View File

@ -15,7 +15,7 @@ import DropdownMenuItem, { MenuItem } from './dropdown-menu-item';
import type { Status } from 'soapbox/types/entities';
export type Menu = Array<MenuItem | null>;
type Menu = Array<MenuItem | null>;
interface IDropdownMenu {
children?: React.ReactElement;
@ -326,4 +326,4 @@ const DropdownMenu = (props: IDropdownMenu) => {
);
};
export default DropdownMenu;
export { type Menu, DropdownMenu as default };

View File

@ -1,3 +1,2 @@
export { default } from './dropdown-menu';
export type { Menu } from './dropdown-menu';
export { default, type Menu } from './dropdown-menu';
export type { MenuItem } from './dropdown-menu-item';