GHHG10's picture
download
raw
786 Bytes
import { Component, Show } from "solid-js"
import { Icon } from "@opencode-ai/ui/icon"
type PromptDragOverlayProps = {
type: "image" | "@mention" | null
label: string
}
const kindToIcon = {
image: "photo",
"@mention": "link",
} as const
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 ? kindToIcon[props.type] : kindToIcon.image} class="size-8" />
<span class="text-14-regular">{props.label}</span>
</div>
</div>
</Show>
)
}

Xet Storage Details

Size:
786 Bytes
·
Xet hash:
af9cd93c1cb9b04fd7781ab3a8a3fc0a09778d0d1e65c2cd36d1dd404037199a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.