import React from 'react'; import { Box, Icon, IconButton, Icons, Scroll, Text } from 'folds'; import { Page, PageContent, PageHeader } from '../../../components/page'; import { useRoom } from '../../../hooks/useRoom'; import { RoomSoundboardPack, UserSoundboardPack } from '../../../components/soundboard-pack-view'; type SoundboardProps = { requestClose: () => void; }; /** * Soundboard management page (Room/Space settings). Mirrors the Emojis & * Stickers page: a shared room/space pack (admin-editable, inherited by child * rooms like emoji packs) plus the user's personal pack. A single default room * pack (state key "") is used per room/space. */ export function Soundboard({ requestClose }: SoundboardProps) { const room = useRoom(); return ( Soundboard {room?.isSpaceRoom() ? 'This space (shared)' : 'This room (shared)'} {/* [Gitea #279] Only a space's clips are inherited by rooms under it. */} {room?.isSpaceRoom() ? 'Clips here are shared with everyone, and inherited by every room under this space — just like emoji/sticker packs. Only members with permission can edit.' : 'Clips here are shared with everyone in this room — just like emoji/sticker packs. Only members with permission can edit.'} {room && } Personal Your own clips, available in every call and synced across your devices. ); }