UNPKG

@vtex/styleguide

Version:

> VTEX Styleguide React components ([Docs](https://vtex.github.io/styleguide))

22 lines (21 loc) 638 B
import { MenuAction } from '../Toolbar/PopoverMenu'; declare function Actions({ children }: { children: any; }): JSX.Element; declare namespace Actions { var Primary: ({ label, onClick }: PrimaryProps) => JSX.Element; var Secondary: ({ label, actions, onActionClick }: SecondaryProps) => JSX.Element; } export default Actions; declare type PrimaryProps = { label: string; onClick: () => void; }; declare type SecondaryActionProps = MenuAction & { isDangerous?: boolean; }; declare type SecondaryProps = { label: string; actions: Array<SecondaryActionProps>; onActionClick: (el: MenuAction) => void; };