import useLocalState from "@/state/state"; import { useEffect, useRef, useState } from "react"; function Modal({ children }: any) { const { setModal } = useLocalState(); function onKey(event: any) { if (event.key === "Escape") setModal(null); } useEffect(() => { document.addEventListener("keyup", onKey); return () => { document.removeEventListener("keyup", onKey); }; }, [children]); function clickAway(e: React.MouseEvent) { console.log("clicked away"); e.stopPropagation(); if (!modalRef.current || !modalRef.current.contains(e.target)) setModal(null); } const modalRef = useRef(null); return (
Trill is the world's only truly free and sovereign social media platform, powered by Urbit.
Click on the crow icon on the top left to see all available feeds.
The Global feed should be populated by default.
Follow people soon so your Global feed doesn't go stale.
Trill is still on beta. The UI is Mobile only, we recommend you use your phone or the browser dev tools. Desktop UI is on the works.
If you have any feedback please reach out to us on Groups at ~hoster-dozzod-sortug/trill or here at ~polwex