'use client';

import React from 'react';
import { Button } from '@/components/ui/button';
import { Plus } from 'lucide-react';
import { Menu } from '../types';

interface MenuManagementHeaderProps {
  onAddMenu: () => void;
}

export function MenuManagementHeader({ onAddMenu }: MenuManagementHeaderProps) {
  return (
    <div className="flex items-center justify-between">
      <div>
        <h2 className="text-green-800">菜单管理</h2>
        <p className="text-muted-foreground">树形结构管理系统菜单体系（最多支持三级菜单）</p>
      </div>
      <Button onClick={onAddMenu} className="bg-green-600 hover:bg-green-700">
        <Plus className="w-4 h-4 mr-2" />
        添加一级菜单
      </Button>
    </div>
  );
}