mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-26 02:06:53 +00:00
7d8c166c7f
Inspired by proprietary solutions. Replace the dialog-based reaction UI with a toolbar integrated directly into the DOM. Allow it to remain open and support proper keyboard interaction, improving accessibility and user experience.
14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import { useSnapshot } from 'valtio'
|
|
import { layoutStore } from '@/stores/layout'
|
|
|
|
export const useReactionsToolbar = () => {
|
|
const layoutSnap = useSnapshot(layoutStore)
|
|
|
|
return {
|
|
isOpen: layoutSnap.showReactionsToolbar,
|
|
toggle: () => {
|
|
layoutStore.showReactionsToolbar = !layoutSnap.showReactionsToolbar
|
|
},
|
|
}
|
|
}
|