add board view toggles

This commit is contained in:
marlon-erler
2024-07-23 15:41:03 +02:00
parent 113502527c
commit 0a34304652
8 changed files with 132 additions and 69 deletions
+6 -11
View File
@@ -1,6 +1,10 @@
import * as React from "bloatless-react";
import ChatViewModel, { ChatPageType } from "../../ViewModel/Chat/chatViewModel";
import ChatViewModel, {
ChatPageType,
} from "../../ViewModel/Chat/chatViewModel";
import { RibbonButton } from "./ribbonButton";
export function ChatViewToggleButton(
label: string,
@@ -17,14 +21,5 @@ export function ChatViewToggleButton(
() => chatViewModel.selectedPage.value == page
);
return (
<button
class="ghost ribbon-button"
aria-label={label}
toggle:selected={isSelected}
on:click={select}
>
<span class="icon">{icon}</span>
</button>
);
return RibbonButton(label, icon, isSelected, select);
}