import React from 'react'; import { TipIcon } from './TipIcon'; interface CommonHeaderProps { title: string; desc?: string; tip?: React.ReactNode; actions?: React.ReactNode; } export const CommonHeader: React.FC = React.memo((props) => { return (

{props.title}

{props.desc && ( {props.desc} )} {props.tip && }
{props.actions &&
{props.actions}
}
); }); CommonHeader.displayName = 'CommonHeader';