import type { ComponentProps } from "react"; import { cn } from "~/lib/utils"; /** One glass backdrop until a top attachment needs the composer to cover its overlap. */ function Shell({ contextStrip = false, className, ...props }: ComponentProps<"div"> & { contextStrip?: boolean }) { return (
); } const outlineClasses = "after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-(--chat-composer-outline) dark:after:shadow-[inset_0_1px_var(--chat-composer-highlight)]"; // The bottom strip continues the outline, so leave the seam between its corners open. const contextSeamClasses = "group-data-with-context/composer-surface:after:[clip-path:polygon(0_0,100%_0,100%_100%,calc(100%-22px)_100%,calc(100%-22px)_calc(100%-2px),22px_calc(100%-2px),22px_100%,0_100%)]"; function Host({ className, ...props }: ComponentProps<"div">) { return ( ); } function Main({ className, ...props }: ComponentProps<"div">) { return ( ); } function ContextStrip({ className, ...props }: ComponentProps<"div">) { return ( ); } export const ComposerSurface = { Shell, Host, Main, ContextStrip };