diff options
Diffstat (limited to 'source/github-helpers/create-dropdown-item.tsx')
-rw-r--r-- | source/github-helpers/create-dropdown-item.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/github-helpers/create-dropdown-item.tsx b/source/github-helpers/create-dropdown-item.tsx new file mode 100644 index 00000000..1341607a --- /dev/null +++ b/source/github-helpers/create-dropdown-item.tsx @@ -0,0 +1,11 @@ +import React from 'dom-chef'; + +export default function createDropdownItem(label: string, url: string, attributes?: Record<string, string>): Element { + return ( + <li {...attributes}> + <a role="menuitem" className="dropdown-item" href={url}> + {label} + </a> + </li> + ); +} |