Files
outline/app/menus/BreadcrumbMenu.tsx
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

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>
);
}