This commit is contained in:
DirkSchlossmacher 2023-11-14 11:09:48 +01:00
parent 6a6a2490ed
commit 14795c50c0

View File

@ -149,9 +149,13 @@ export function SideBar(props: { className?: string }) {
[isMobileScreen],
);
const usageStatsComponent = showUsageStats && <UsageStats onClose={() => setShowUsageStats(false)} />;
useHotKey();
return (
<>
{usageStatsComponent} {/* This is where the UsageStats component gets rendered */}
<div
className={`${styles.sidebar} ${props.className} ${
shouldNarrow && styles["narrow-sidebar"]
@ -166,7 +170,7 @@ export function SideBar(props: { className?: string }) {
AdEx<b>GPT</b> - via API
</div>
<div className={styles["sidebar-sub-title"]}>
secure local UI for
secure local UI for&nbsp;
<span
className={styles["api-link"]} // You might need to define this style
onClick={toggleUsageStats}
@ -282,5 +286,7 @@ export function SideBar(props: { className?: string }) {
<DragIcon />
</div>
</div>
</>
);
}