mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 21:16:00 +00:00
14 lines
381 B
JavaScript
14 lines
381 B
JavaScript
import _ from 'lodash';
|
|
import { filterName } from 'dbgate-datalib';
|
|
|
|
const macroAppObject = () => ({ name, type, title, group }, { setOpenedTabs }) => {
|
|
const key = name;
|
|
const icon = 'img macro';
|
|
const matcher = (filter) => filterName(filter, name, title);
|
|
const groupTitle = group;
|
|
|
|
return { title, key, icon, groupTitle, matcher };
|
|
};
|
|
|
|
export default macroAppObject;
|