menuItem.tsx
TLDR
This file exports a type called MenuOptionProps
that defines the structure of the props required for a menu option.
Classes (if applicable)
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export type MenuOptionProps = {
id: string
name: string
onClick: (id: string) => void
}