Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

407 B
Raw Blame
import { LocalChannelNode } from '@colanode/client/types';
import { Tab } from '@colanode/ui/components/layouts/tabs/tab';

interface ChannelTabProps {
  channel: LocalChannelNode;
}

export const ChannelTab = ({ channel }: ChannelTabProps) => {
  const name =
    channel.name && channel.name.length > 0 ? channel.name : 'Unnamed';

  return <Tab id={channel.id} avatar={channel.avatar} name={name} />;
};