import { useStore } from '@nanostores/react'; import { chatStore } from '~/lib/stores/chat'; import { workbenchStore } from '~/lib/stores/workbench'; import { classNames } from '~/utils/classNames'; import { OpenStackBlitz } from './OpenStackBlitz.client'; interface HeaderActionButtonsProps {} export function HeaderActionButtons({}: HeaderActionButtonsProps) { const showWorkbench = useStore(workbenchStore.showWorkbench); const { showChat } = useStore(chatStore); const canHideChat = showWorkbench || !showChat; return (
); } interface ButtonProps { active?: boolean; disabled?: boolean; children?: any; onClick?: VoidFunction; } function Button({ active = false, disabled = false, children, onClick }: ButtonProps) { return ( ); }