mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 23:25:59 +00:00
22 lines
506 B
Svelte
22 lines
506 B
Svelte
<script lang="ts">
|
|
import FormStyledButton from '../buttons/FormStyledButton.svelte';
|
|
import { openWebLink } from '../utility/simpleTools';
|
|
|
|
export let text: string;
|
|
export let link: string;
|
|
export let colorClass: string = '';
|
|
export let items: any[] = [];
|
|
</script>
|
|
|
|
<div class="center">
|
|
{#each items as item}
|
|
<FormStyledButton on:click={() => openWebLink(item.link)} value={item.text} skipWidth {colorClass} />
|
|
{/each}
|
|
</div>
|
|
|
|
<style>
|
|
.center {
|
|
text-align: center;
|
|
}
|
|
</style>
|