mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 03:49:56 +08:00
14 lines
413 B
TypeScript
14 lines
413 B
TypeScript
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
|
|
import type { MenuItemProps } from '../menu.types';
|
|
import { useMenuItem } from '../use-menu-item';
|
|
|
|
export const DesktopMenuItem = (props: MenuItemProps) => {
|
|
const { className, children, otherProps } = useMenuItem(props);
|
|
return (
|
|
<DropdownMenu.Item className={className} {...otherProps}>
|
|
{children}
|
|
</DropdownMenu.Item>
|
|
);
|
|
};
|