Skip to content

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

381 B
Raw Blame
import { Avatar } from '@colanode/ui/components/avatars/avatar';

interface TabProps {
  id: string;
  avatar?: string | null;
  name: string;
}

export const Tab = ({ id, avatar, name }: TabProps) => {
  return (
    <div className="flex items-center space-x-2">
      <Avatar id={id} avatar={avatar} name={name} className="size-4" />
      <span>{name}</span>
    </div>
  );
};