This commit is contained in:
2025-03-28 14:45:54 +08:00
parent d9b9ce4676
commit 0079786b25
14 changed files with 3718 additions and 6 deletions
+24
View File
@@ -0,0 +1,24 @@
import React from 'react';
import { Link } from '@remix-run/react';
interface PageHeaderProps {
title: string;
onSave?: () => void;
}
export function PageHeader({ title, onSave }: PageHeaderProps) {
return (
<div className="flex justify-between items-center">
<h1 className="text-xl font-medium text-gray-800">{title}</h1>
<div>
<button
type="button"
className="ant-btn ant-btn-primary"
onClick={onSave}
>
<i className="ri-save-line mr-1"></i>
</button>
</div>
</div>
);
}