Ensure files listed in side bar of tools are private

This commit is contained in:
Connor Yoh 2025-10-31 16:32:34 +00:00
parent 9970506bbf
commit 47367ef66b

View File

@ -7,6 +7,7 @@ import { useFilesModalContext } from "@app/contexts/FilesModalContext";
import { useAllFiles } from "@app/contexts/FileContext";
import { useFileManager } from "@app/hooks/useFileManager";
import { StirlingFile } from "@app/types/fileContext";
import { PrivateContent } from "@app/components/shared/PrivateContent"
export interface FileStatusIndicatorProps {
selectedFiles?: StirlingFile[];
@ -134,7 +135,9 @@ const FileStatusIndicator = ({
return (
<Text size="sm" c="dimmed" style={{ wordBreak: 'break-word', whiteSpace: 'normal' }}>
{selectedFiles.length === 1 ? t("fileSelected", "Selected: {{filename}}", { filename: selectedFiles[0]?.name }) : t("filesSelected", "{{count}} files selected", { count: selectedFiles.length })}
{selectedFiles.length === 1
? <PrivateContent>{t("fileSelected", "Selected: {{filename}}", { filename: selectedFiles[0]?.name }) }</PrivateContent>
: t("filesSelected", "{{count}} files selected", { count: selectedFiles.length })}
</Text>
);
};