import { EmojiOrImageIcon } from '@/components/EmojiOrImageIcon' import { HardDriveIcon, ChevronLeftIcon, PlusIcon, LogOutIcon, } from '@/components/icons' import { PlanTag } from '@/features/billing' import { trpc } from '@/lib/trpc' import { Menu, MenuButton, Button, HStack, MenuList, MenuItem, Text, } from '@chakra-ui/react' import { Workspace } from '@typebot.io/schemas' type Props = { currentWorkspace?: Workspace onWorkspaceSelected: (workspaceId: string) => void onCreateNewWorkspaceClick: () => void onLogoutClick: () => void } export const WorkspaceDropdown = ({ currentWorkspace, onWorkspaceSelected, onLogoutClick, onCreateNewWorkspaceClick, }: Props) => { const { data } = trpc.workspace.listWorkspaces.useQuery() const workspaces = data?.workspaces ?? [] return (
) }