Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

1.1 KB
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0

import { ActionBarPrimitive } from "@assistant-ui/react";
import type { FC, PropsWithChildren } from "react";
import { UserMessageTime } from "./user-message-time";

/** Use the message's full width, independently of the bubble's 80% limit. */
export const UserMessageFooter: FC<PropsWithChildren> = ({ children }) => (
  <div className="aui-user-message-footer mt-1 flex min-h-8 w-full min-w-0 flex-wrap items-center justify-end gap-y-1">
    {children}
  </div>
);

export const UserMessageActionBar: FC<PropsWithChildren> = ({ children }) => (
  <ActionBarPrimitive.Root
    autohide="always"
    className="aui-user-action-bar-root contents text-chat-icon-fg"
  >
    <UserMessageTime />
    <div className="aui-user-action-controls flex shrink-0 gap-1 [&_button]:size-8 [&_button]:!rounded-full [&_button:hover]:bg-chat-icon-bg-hover [&_button:hover]:text-chat-icon-fg-hover">
      {children}
    </div>
  </ActionBarPrimitive.Root>
);