import { CornerUpLeft } from 'lucide-react'; import { Link } from '#/components/atoms/link.jsx'; import { Identity } from '#/components/molecules/identity.jsx'; import { href } from '#/lib/navigation.jsx'; import { useSession } from '#/lib/session.jsx'; /** * Whose records the screen below is showing. * * Every screen under a space reads exactly one repo, and which one is carried * in the query rather than in the path, so nothing on the page says it. Opening * another member's repo lands on their records with the list that was clicked * no longer on screen, and without this there is no way back to one's own. * * @param {Object} props * @param {string} props.space * @param {string|null} [props.repo] - absent for the signed-in account's own */ export function RepoScope({ space, repo }) { const { session } = useSession(); const own = !repo || repo === session.did; if (own) { return