Files
tkmind_go/ui/desktop/src/components/AgentHeader.tsx
T
Zane 77ea27f5f5 UI update with sidebar and settings tabs (#3288)
Co-authored-by: Nahiyan Khan <nahiyan@squareup.com>
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Co-authored-by: Lily Delalande <119957291+lily-de@users.noreply.github.com>
Co-authored-by: Spence <spencrmartin@gmail.com>
Co-authored-by: spencrmartin <spencermartin@squareup.com>
Co-authored-by: Judson Stephenson <Jud@users.noreply.github.com>
Co-authored-by: Max Novich <mnovich@squareup.com>
Co-authored-by: Best Codes <106822363+The-Best-Codes@users.noreply.github.com>
Co-authored-by: caroline-a-mckenzie <cmckenzie@squareup.com>
Co-authored-by: Michael Neale <michael.neale@gmail.com>
2025-07-15 17:24:41 -07:00

38 lines
1.0 KiB
TypeScript

interface AgentHeaderProps {
title: string;
profileInfo?: string;
onChangeProfile?: () => void;
showBorder?: boolean;
}
export function AgentHeader({
title,
profileInfo,
onChangeProfile,
showBorder = false,
}: AgentHeaderProps) {
return (
<div
className={`flex items-center justify-between px-4 py-2 ${showBorder ? 'border-b border-borderSubtle' : ''}`}
>
<div className="flex items-center ml-6">
<span className="w-2 h-2 rounded-full bg-green-500 mr-2" />
<span className="text-sm">
<span className="text-textSubtle">Agent</span>{' '}
<span className="text-textStandard">{title}</span>
</span>
</div>
{profileInfo && (
<div className="flex items-center text-sm">
<span className="text-textSubtle">{profileInfo}</span>
{onChangeProfile && (
<button onClick={onChangeProfile} className="ml-2 text-blockTeal hover:underline">
change profile
</button>
)}
</div>
)}
</div>
);
}