import { UserMessage } from "@opencode-ai/sdk/v2" import { ComponentProps, For, Match, Show, splitProps, Switch } from "solid-js" import { DiffChanges } from "./diff-changes" import { Tooltip } from "@kobalte/core/tooltip" import { useI18n } from "../context/i18n" export function MessageNav( props: ComponentProps<"ul"> & { messages: UserMessage[] current?: UserMessage size: "normal" | "compact" onMessageSelect: (message: UserMessage) => void getLabel?: (message: UserMessage) => string | undefined }, ) { const i18n = useI18n() const [local, others] = splitProps(props, ["messages", "current", "size", "onMessageSelect", "getLabel"]) const content = () => ( ) return ( {content()}
{content()}
) }