The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Move shortcuts bar to own file
Terry Suttond2401641d92e
diff --git a/packages/ui/src/components/Command/CommandMenuShortcuts.tsx b/packages/ui/src/components/Command/CommandMenuShortcuts.tsxnew file mode 100644index 00000000000..bf0ae4581e1--- /dev/null+++ b/packages/ui/src/components/Command/CommandMenuShortcuts.tsx@@ -0,0 +1,25 @@+import React from 'react'+import { CommandShortcut } from './Command.utils'+import { useCommandMenu } from './CommandMenuProvider'++export default function CommandMenuShortcuts() {+ const { setPages, pages } = useCommandMenu()+ return (+ <div className="flex w-full gap-2 px-4 pt-4 justify-items-start flex-row">+ <CommandShortcut onClick={() => setPages([])}>{'Home'}</CommandShortcut>+ {pages.map((page, index) => (+ <CommandShortcut+ key={page}+ onClick={() => {+ if (index === pages.length - 1) {+ return+ }+ setPages(pages.slice(0, index - 1))+ }}+ >+ {page}+ </CommandShortcut>+ ))}+ </div>+ )+}