MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / Matrix

Function Matrix

apps/web/components/Pages/Matrix/index.tsx:23–53  ·  view source on GitHub ↗
({
  channels,
  currentCommunity,
  communities,
  settings,
  permissions,
  isSubDomainRouting,
  dms,
}: Props)

Source from the content-addressed store, hash-verified

21}
22
23export default function Matrix({
24 channels,
25 currentCommunity,
26 communities,
27 settings,
28 permissions,
29 isSubDomainRouting,
30 dms,
31}: Props) {
32 useEffect(() => {
33 localStorage.set('pages.last', {
34 communityId: currentCommunity.id,
35 page: 'settings',
36 });
37 }, [currentCommunity]);
38
39 return (
40 <PageLayout
41 channels={channels}
42 communities={communities}
43 currentCommunity={currentCommunity}
44 permissions={permissions}
45 settings={settings}
46 isSubDomainRouting={isSubDomainRouting}
47 className="w-full"
48 dms={dms}
49 >
50 <MatrixView api={api} currentCommunity={currentCommunity} />
51 </PageLayout>
52 );
53}

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected