'use client';

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

interface RoleManagementHeaderProps {
  onAddRole: () => void;
}

export function RoleManagementHeader({ onAddRole }: RoleManagementHeaderProps) {
  return (
    <div className="flex items-center justify-between">
      <div>
        <h2 className="text-green-800">角色管理</h2>
        <p className="text-muted-foreground">基于RBAC的角色访问控制管理</p>
      </div>
      <Button onClick={onAddRole}>
        <Plus className="w-4 h-4 mr-2" />
        添加角色
      </Button>
    </div>
  );
}