Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
import { useEffect, useState } from 'react';
/** Whether a media query matches, kept in sync with resizes and rotation. */
export function useMedia(query: string): boolean {
const [matches, setMatches] = useState(() => typeof window !== 'undefined' && !!window.matchMedia?.(query).matches);
useEffect(() => {
const mq = window.matchMedia?.(query);
if (!mq) return;
const on = () => setMatches(mq.matches);
on();
mq.addEventListener?.('change', on);
return () => mq.removeEventListener?.('change', on);
}, [query]);
return matches;
}