Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils.js « labels_select_widget « labels « components « sidebar « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b5cd946a189797ffd0393e67669fac10329cdb53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { DropdownVariant } from './constants';

/**
 * Returns boolean representing whether dropdown variant
 * is `sidebar`
 * @param {string} variant
 */
export const isDropdownVariantSidebar = (variant) => variant === DropdownVariant.Sidebar;

/**
 * Returns boolean representing whether dropdown variant
 * is `standalone`
 * @param {string} variant
 */
export const isDropdownVariantStandalone = (variant) => variant === DropdownVariant.Standalone;

/**
 * Returns boolean representing whether dropdown variant
 * is `embedded`
 * @param {string} variant
 */
export const isDropdownVariantEmbedded = (variant) => variant === DropdownVariant.Embedded;