生产管理系统前端 开发中心配置系统 所有页面

This commit is contained in:
2025-10-21 18:04:39 +08:00
parent 4a5d278d89
commit 9afc680833
185 changed files with 13677 additions and 4487 deletions

View File

@@ -0,0 +1,45 @@
'use client';
import React from 'react';
import { Button } from '@/components/ui/button';
import { Edit, Save, X } from 'lucide-react';
interface EnterpriseInfoHeaderProps {
isEditing: boolean;
onEdit: () => void;
onCancel: () => void;
onSave: () => void;
}
export function EnterpriseInfoHeader({
isEditing,
onEdit,
onCancel,
onSave
}: EnterpriseInfoHeaderProps) {
return (
<div className="flex items-center justify-between">
<div>
<h2 className="text-green-800"></h2>
<p className="text-muted-foreground"></p>
</div>
{!isEditing ? (
<Button onClick={onEdit}>
<Edit className="w-4 h-4 mr-2" />
</Button>
) : (
<div className="flex gap-2">
<Button variant="outline" onClick={onCancel}>
<X className="w-4 h-4 mr-2" />
</Button>
<Button onClick={onSave}>
<Save className="w-4 h-4 mr-2" />
</Button>
</div>
)}
</div>
);
}