import { IconFolderExclamation, IconLoader2, IconX } from '@tabler/icons-react' import { Button } from '@/client/components/ui/button' import { cn } from '@/client/lib/cn' import { ComposerBannerShell } from './composer-banner' export type WorkspaceSkillUpdateAction = 'auto' | 'once' export type SkillUpdateBannerProps = { error: string | null pendingAction: WorkspaceSkillUpdateAction | null onUpdate: (action: WorkspaceSkillUpdateAction) => void onDismiss: () => void } export function SkillUpdateBanner({ error, pendingAction, onUpdate, onDismiss }: SkillUpdateBannerProps) { if (!error && pendingAction === 'auto') { return ( Updating Moi skills… ) } const pending = pendingAction !== null return (
{error ? ( {`Update failed: ${error}`} ) : ( This workspace is using old Moi skills )}
) }