Files
openchamber/packages/ui/src/components/session/SessionsTabTitle.tsx
T
JakeandBohdan Triapitsyn 5589ca991a feat(vscode): add archive all sessions action (#1262)
* feat(vscode): add archive all sessions action

* Update packages/ui/src/components/layout/VSCodeLayout.tsx

Signed-off-by: Jake <101855602+jjdubski@users.noreply.github.com>

* fix: Fail-open default archives all sessions when workspace can't be resolved

* fix: Already-archived descendants are included in the archive call

* fix: add i18n for the newly added toasts

* Restore icon name from 'add-line' to 'add'

Signed-off-by: Jake <101855602+jjdubski@users.noreply.github.com>

* update: fix merge conflict and update code structure into components

---------

Signed-off-by: Jake <101855602+jjdubski@users.noreply.github.com>
Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
2026-06-08 15:11:05 +03:00

17 lines
478 B
TypeScript

import React from 'react';
import { ArchiveAllDropdown } from '@/components/session/ArchiveAllDropdown';
interface SessionsTabTitleProps {
title: string;
onArchiveAll?: () => void;
}
const SessionsTabTitle: React.FC<SessionsTabTitleProps> = ({ title, onArchiveAll }) => (
<>
<h1 className="text-sm font-medium truncate flex-1" title={title}>{title}</h1>
{onArchiveAll && <ArchiveAllDropdown onArchiveAll={onArchiveAll} />}
</>
);
export { SessionsTabTitle };