mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 01:14:23 +00:00
9d21736e9f
* Add copyright headers to UI files * Ensure copywrite file ignores external libs
17 lines
303 B
JavaScript
17 lines
303 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
export default function (prop) {
|
|
return function (value) {
|
|
if (typeof value === 'undefined' || value === null || value === '') {
|
|
return {};
|
|
} else {
|
|
return {
|
|
[prop]: value,
|
|
};
|
|
}
|
|
};
|
|
}
|