import React = require("react");
import { ContextMenu } from "./ContextMenu";

export interface ContextMenuProps {
    description: string;
    event: (e: React.MouseEvent<HTMLDivElement>) => void;
}

export class ContextMenuItem extends React.Component<ContextMenuProps> {
    render() {
        return (
            <div className="contextMenu-item" onClick={this.props.event}>
                <div className="contextMenu-description">{this.props.description}</div>
            </div>
        )
    }
}