| import React from 'react'; |
| import { cn } from '@/lib/utils'; |
|
|
| |
| |
| |
| |
|
|
| interface ConsoleToolbarProps { |
| |
| children?: React.ReactNode; |
| |
| actions?: React.ReactNode; |
| |
| className?: string; |
| } |
|
|
| |
| |
| |
| |
| export function ConsoleToolbar({ |
| children, |
| actions, |
| className, |
| }: ConsoleToolbarProps) { |
| return ( |
| <div |
| className={cn( |
| 'flex items-center justify-between gap-4 py-3 px-4', |
| 'bg-console-surface-raised border-b border-console-border', |
| className |
| )} |
| > |
| {/* 左侧内容(筛选、搜索等) */} |
| <div className="flex items-center gap-3 flex-1 min-w-0"> |
| {children} |
| </div> |
| |
| {/* 右侧操作 */} |
| {actions && ( |
| <div className="flex items-center gap-2 shrink-0"> |
| {actions} |
| </div> |
| )} |
| </div> |
| ); |
| } |
|
|