import { ReportTablePage, money } from './homesShared'
export default function ReportIncentivePage() {
  return (
    <ReportTablePage
      title="인센티브계산"
      apiPath="homes/reports/incentive"
      columns={[
        { title: '직원', dataIndex: 'label', width: 120 },
        { title: '기준실적', dataIndex: 'settleAmount', width: 120, align: 'right', render: money },
        { title: '인센티브율', dataIndex: 'rate', width: 100, align: 'right', render: (v) => (v == null ? '-' : `${v}%`) },
        { title: '인센티브', dataIndex: 'incentive', width: 120, align: 'right', render: money },
      ]}
    />
  )
}
