Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

654 B
Raw Blame
import { useChannelPicture } from '@queries/channel/picture';
import { type JSX, Suspense } from 'solid-js';
import { ChannelPicture } from './components/ChannelPicture';

/** Shared channel avatar without the picture editor's upload dependencies. */
export function ChannelAvatar(props: {
  channelId: string;
  class?: string;
  fallback?: JSX.Element;
}) {
  const picture = useChannelPicture(() => props.channelId);
  return (
    <Suspense fallback={props.fallback}>
      <ChannelPicture
        url={picture.url()}
        revision={picture.revision()}
        class={props.class}
        fallback={props.fallback}
      />
    </Suspense>
  );
}