mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-22 16:44:36 +00:00
21 lines
703 B
TypeScript
21 lines
703 B
TypeScript
import { Component, Show } from "solid-js"
|
|
import { Icon } from "@opencode-ai/ui/icon"
|
|
|
|
type PromptDragOverlayProps = {
|
|
type: "image" | "@mention" | null
|
|
label: string
|
|
}
|
|
|
|
export const PromptDragOverlay: Component<PromptDragOverlayProps> = (props) => {
|
|
return (
|
|
<Show when={props.type !== null}>
|
|
<div class="absolute inset-0 z-10 flex items-center justify-center bg-surface-raised-stronger-non-alpha/90 pointer-events-none">
|
|
<div class="flex flex-col items-center gap-2 text-text-weak">
|
|
<Icon name={props.type === "@mention" ? "link" : "photo"} class="size-8" />
|
|
<span class="text-14-regular">{props.label}</span>
|
|
</div>
|
|
</div>
|
|
</Show>
|
|
)
|
|
}
|