'use client';

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

interface PermissionManagementHeaderProps {
  onAddPermission: () => void;
}

export function PermissionManagementHeader({ onAddPermission }: PermissionManagementHeaderProps) {
  return (
    <div className="flex items-center justify-between">
      <div>
        <h2 className="text-green-800">权限配置管理</h2>
        <p className="text-muted-foreground">精细化管理系统功能权限</p>
      </div>
      <Button onClick={onAddPermission} className="bg-green-600 hover:bg-green-700">
        <Plus className="w-4 h-4 mr-2" />
        添加权限
      </Button>
    </div>
  );
}