mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-09-15 05:56:36 +00:00
feat: add single tool schema rendering
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { getTool } from "$lib/registry";
|
||||
import ToolView from "$lib/components/kit/ToolView.svelte";
|
||||
import SchemaToolView from "$lib/components/kit/SchemaToolView.svelte";
|
||||
import EmptyState from "$lib/components/kit/EmptyState.svelte";
|
||||
import { SlidersHorizontal as ToolIcon } from "@lucide/svelte";
|
||||
|
||||
@@ -25,6 +26,8 @@
|
||||
icon={ToolIcon}
|
||||
/>
|
||||
</div>
|
||||
{:else if tool.schema}
|
||||
<SchemaToolView {tool} />
|
||||
{:else}
|
||||
<ToolView {tool} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user