mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
bf45e97641
* Update types * fix circular dep * type imports * lint type imports and --fix
22 lines
632 B
TypeScript
22 lines
632 B
TypeScript
import { useTranslation } from "react-i18next";
|
|
import { DropdownMenu } from "~/components/Menu/DropdownMenu";
|
|
import { OverflowMenuButton } from "~/components/Menu/OverflowMenuButton";
|
|
import { useMenuAction } from "~/hooks/useMenuAction";
|
|
import type { InternalLinkAction } from "~/types";
|
|
|
|
type Props = {
|
|
actions: InternalLinkAction[];
|
|
};
|
|
|
|
export default function BreadcrumbMenu({ actions }: Props) {
|
|
const { t } = useTranslation();
|
|
|
|
const rootAction = useMenuAction(actions);
|
|
|
|
return (
|
|
<DropdownMenu action={rootAction} ariaLabel={t("Show path to document")}>
|
|
<OverflowMenuButton />
|
|
</DropdownMenu>
|
|
);
|
|
}
|