mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 18:35:58 +00:00
12 lines
397 B
Svelte
12 lines
397 B
Svelte
<script lang="ts">
|
|
import _ from 'lodash';
|
|
|
|
import ToolStripCommandButton from './ToolStripCommandButton.svelte';
|
|
import ToolStripSplitDropDownButton from './ToolStripSplitDropDownButton.svelte';
|
|
|
|
export let commands;
|
|
$: menu = _.compact(commands).map(command => ({ command }));
|
|
</script>
|
|
|
|
<ToolStripCommandButton command={commands[0]} component={ToolStripSplitDropDownButton} {menu} />
|