NoChannelEmptyState.tsx 1.2 KB

1234567891011121314151617181920212223242526272829
  1. import { cn } from 'ui'
  2. import { DocsButton } from '@/components/ui/DocsButton'
  3. import { DOCS_URL } from '@/lib/constants'
  4. const NoChannelEmptyState = () => {
  5. return (
  6. <div className="border bg-studio border-border rounded-md justify-start items-center flex flex-col w-10/12 relative">
  7. <div className="w-full px-5 py-4 items-center gap-4 inline-flex border-b rounded-t-md">
  8. <div className="grow flex-col flex gap-y-1">
  9. <p className="text-foreground">Join a channel to start listening to messages</p>
  10. <p className="text-foreground-lighter text-xs">
  11. Channels are the building blocks of realtime where clients can bi-directionally send and
  12. receive messages in.
  13. </p>
  14. </div>
  15. </div>
  16. <div className={cn('w-full px-5 py-4 items-center gap-4 inline-flex')}>
  17. <div className="grow flex-col flex">
  18. <p className="text-foreground">Not sure what to do?</p>
  19. <p className="text-foreground-lighter text-xs">Browse our documentation</p>
  20. </div>
  21. <DocsButton href={`${DOCS_URL}/guides/realtime`} />
  22. </div>
  23. </div>
  24. )
  25. }
  26. export default NoChannelEmptyState