Files
supabase/apps/studio/components/interfaces/Realtime/Inspector/NoChannelEmptyState.tsx
Ivan VasilovandJoshen Lim 05a542ccea chore: Migrate all feather icons to lucide icons (#29038)
* Add lucide-react to docs (to make the autocomplete work).

* Migrate the docs app icons.

* Migrate the ui-patterns.

* Remove the old icons from ui package.

* Migrate the www app from react-feather icons.

* Migrate all of studio icons.

* Migrate the only component in design-system.

* Fix an old import in ui package. Revert an import in docs app.

* Fix some pages in www.

* Remove unneeded files used in generation of icons.

* Fix a prettier error.

* Fix more issues in www.

* Fix an issue in Log Date picker.

* Replace all string sizes with number sizes because the icons grew in some cases.

* Fix more imports in security page.

* Fix an extra import.

* Remove the size prop from all icons if they're in a button and they match the button size.

* Minor fixes for docs and www.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-09-04 19:46:21 +08:00

32 lines
1.3 KiB
TypeScript

import { ExternalLink } from 'lucide-react'
import { Button } from 'ui'
const NoChannelEmptyState = () => {
return (
<div className="border bg-studio border-border rounded-md justify-start items-center flex flex-col w-10/12 relative">
<div className="w-full px-5 py-4 items-center gap-4 inline-flex border-b rounded-t-md">
<div className="grow flex-col flex gap-y-1">
<p className="text-foreground">Join a channel to start listening to messages</p>
<p className="text-foreground-lighter text-xs">
Channels are the building blocks of realtime where clients can bi-directionally send and
receive messages in.
</p>
</div>
</div>
<div className="w-full px-5 py-4 items-center gap-4 inline-flex rounded-b-md">
<div className="grow flex-col flex">
<p className="text-foreground">Not sure what to do?</p>
<p className="text-foreground-lighter text-xs">Browse our documentation</p>
</div>
<Button type="default" iconRight={<ExternalLink />}>
<a href="https://supabase.com/docs/guides/realtime" target="_blank" rel="noreferrer">
Documentation
</a>
</Button>
</div>
</div>
)
}
export default NoChannelEmptyState