import React from 'react'
import clsx from 'clsx'
import '@platformuiserver/platformui.assets/css/index.less'
import styles from './style.module.less'
export default function DetialItemTitle (props) {
  const { title, children, openBtn = false } = props
  return (
    <div className={clsx(styles.headerTitle, 'flex-center-start')}>
      <div>
        <div className={styles.titleLeftIcon} />
        <div className={styles.titleLeftName}>{title}</div>
      </div>
      <div style={{ flex: 1 }}>
        {children}
      </div>
    </div>
  );
}
