-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
161b9e6
commit 00fd51a
Showing
6 changed files
with
160 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { Component, ParentComponent } from 'solid-js'; | ||
import { cn } from '@/modules/ui/utils/cn'; | ||
|
||
export const ToolHeader: ParentComponent<{ name: string; description: string; icon: string }> = (props) => { | ||
return ( | ||
<div> | ||
<div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] pt-12"> | ||
|
||
<div class="flex gap-4 mb-8 max-w-1200px mx-auto px-6 items-start flex-col md:flex-row md:items-center"> | ||
<div class="bg-card p-4 rounded-lg"> | ||
<div class={cn(props.icon, 'size-8 md:size-12 text-muted-foreground')} /> | ||
</div> | ||
|
||
<div> | ||
<h1 class="text-xl font-semibold"> | ||
{props.name} | ||
</h1> | ||
<div class="text-muted-foreground text-base"> | ||
{props.description} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="bg-gradient-to-t dark:from-background to-transparent h-24 mt-12 mb--24"></div> | ||
</div> | ||
|
||
{props.children} | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import type { Flatten, Translator } from '@solid-primitives/i18n'; | ||
import type { defineTool } from './tools.models'; | ||
|
||
export type ToolI18nFactory = <T extends Record<string, string>>(args: { defaultDictionary: T }) => { t: Translator<Flatten<T>> }; | ||
|
||
export type ToolDefinition = ReturnType<typeof defineTool>; |