mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 01:57:29 +00:00
21 lines
587 B
TypeScript
21 lines
587 B
TypeScript
import React from "react";
|
|
import { Node } from "../ContextMenu";
|
|
import ContextMenuTarget from "../ContextMenuTarget";
|
|
import * as Actions from "../../actionCreators";
|
|
import { useActionCreator } from "../../hooks";
|
|
|
|
const MiscOptionsContextMenu = () => {
|
|
const downloadHtmlPlaylist = useActionCreator(Actions.downloadHtmlPlaylist);
|
|
return (
|
|
<ContextMenuTarget
|
|
top
|
|
renderMenu={() => (
|
|
<Node onClick={downloadHtmlPlaylist} label="Generate HTML playlist" />
|
|
)}
|
|
>
|
|
<div />
|
|
</ContextMenuTarget>
|
|
);
|
|
};
|
|
|
|
export default MiscOptionsContextMenu;
|