tianji/src/client/components/PageHeader.tsx

15 lines
333 B
TypeScript
Raw Normal View History

import React from 'react';
export const PageHeader: React.FC<{
title: string;
action?: React.ReactNode;
}> = React.memo((props) => {
return (
<div className="h-24 flex items-center">
<div className="text-2xl flex-1">{props.title}</div>
{props.action}
</div>
);
});
PageHeader.displayName = 'PageHeader';