import { ReactNode } from 'react';
import { Sub } from '@radix-ui/react-dropdown-menu';

export interface DropdownSubMenuProps {
    /** DropdownSubMenu Trigger and Content */
    children: ReactNode;
}

/**
 * DropdownSubMenu component
 */
export const DropdownSubMenu = (props: DropdownSubMenuProps): JSX.Element => {
    const { children } = props;

    return <Sub>{children}</Sub>;
};
