mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 12:49:06 +00:00
- Move WebHook configuration from General to dedicated WebHook tab - Add WebHook tab after Share tab in room edit dialog - Fix Force Sync button not appearing by adding missing isEditing prop - Fix indentation issues in MeetingSelection component 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
76 lines
1.7 KiB
TypeScript
76 lines
1.7 KiB
TypeScript
"use client";
|
|
|
|
import { Flex, Link, Button, Text } from "@chakra-ui/react";
|
|
import NextLink from "next/link";
|
|
import Image from "next/image";
|
|
import { useRouter } from "next/navigation";
|
|
|
|
interface MinimalHeaderProps {
|
|
roomName: string;
|
|
displayName?: string;
|
|
showLeaveButton?: boolean;
|
|
}
|
|
|
|
export default function MinimalHeader({
|
|
roomName,
|
|
displayName,
|
|
showLeaveButton = true,
|
|
}: MinimalHeaderProps) {
|
|
const router = useRouter();
|
|
|
|
const handleLeaveMeeting = () => {
|
|
router.push(`/${roomName}`);
|
|
};
|
|
|
|
const roomTitle = displayName
|
|
? displayName.endsWith("'s") || displayName.endsWith("s")
|
|
? `${displayName} Room`
|
|
: `${displayName}'s Room`
|
|
: `${roomName} Room`;
|
|
|
|
return (
|
|
<Flex
|
|
as="header"
|
|
justify="space-between"
|
|
alignItems="center"
|
|
w="100%"
|
|
py="2"
|
|
px="4"
|
|
borderBottom="1px solid"
|
|
borderColor="gray.200"
|
|
bg="white"
|
|
position="sticky"
|
|
top="0"
|
|
zIndex="10"
|
|
>
|
|
{/* Logo and Room Context */}
|
|
<Flex alignItems="center" gap={3}>
|
|
<Link as={NextLink} href="/" className="flex items-center">
|
|
<Image
|
|
src="/reach.svg"
|
|
width={24}
|
|
height={30}
|
|
className="h-8 w-auto"
|
|
alt="Reflector"
|
|
/>
|
|
</Link>
|
|
<Text fontSize="lg" fontWeight="semibold" color="gray.700">
|
|
{roomTitle}
|
|
</Text>
|
|
</Flex>
|
|
|
|
{/* Leave Meeting Button */}
|
|
{showLeaveButton && (
|
|
<Button
|
|
variant="outline"
|
|
colorScheme="gray"
|
|
size="sm"
|
|
onClick={handleLeaveMeeting}
|
|
>
|
|
Leave Meeting
|
|
</Button>
|
|
)}
|
|
</Flex>
|
|
);
|
|
}
|