Vc footer

This commit is contained in:
2026-01-05 22:45:43 +01:00
parent 1af261058f
commit abbd461e3f
+12 -2
View File
@@ -2,8 +2,9 @@
import { ScrollArea } from "../ui/scroll-area"; import { ScrollArea } from "../ui/scroll-area";
import { Server, Channel } from "@/types/types"; import { Server, Channel } from "@/types/types";
import { Card } from "../ui/card"; import { Card } from "../ui/card";
import { HashIcon, Volume2Icon } from "lucide-react"; import { HashIcon, PhoneOff, Volume2Icon } from "lucide-react";
import App from "@/types/app"; import App from "@/types/app";
import { Button } from "../ui/button";
export function ChannelIcon({ kind }: { kind: "text" | "voice" }) { export function ChannelIcon({ kind }: { kind: "text" | "voice" }) {
switch (kind) { switch (kind) {
@@ -38,7 +39,7 @@ export function ChannelItem({ channel, app }: { channel: Channel; app: App }) {
export default function SidebarChannels({ app }: { app: App }) { export default function SidebarChannels({ app }: { app: App }) {
return ( return (
<div className="w-full flex flex-col bg-sidebar"> <div className="w-full h-full flex flex-col bg-sidebar">
<div className="p-3 border-b flex items-center gap-2"> <div className="p-3 border-b flex items-center gap-2">
<h2>{app.server?.name}</h2> <h2>{app.server?.name}</h2>
</div> </div>
@@ -49,6 +50,15 @@ export default function SidebarChannels({ app }: { app: App }) {
))} ))}
</div> </div>
</ScrollArea> </ScrollArea>
<footer className="mt-auto mx-3 mb-2 h-10">
<Button
variant="ghost"
className="text-destructive hover:bg-destructive/20 hover:text-destructive"
>
<PhoneOff />
</Button>
</footer>
</div> </div>
); );
} }