import useLocalState from "@/state/state"; import type { Ship } from "@/types/urbit"; import Sigil from "./Sigil"; import ShipModal from "./modals/ShipModal"; export default function ({ p, size, color, noClickOnName, }: { p: Ship; size: number; color?: string; noClickOnName?: boolean; }) { const { setModal } = useLocalState(); // TODO revisit this when %whom updates const avatar = (
{p.length > 28 ? "Anon" : p}