15 lines
591 B
TypeScript
15 lines
591 B
TypeScript
"use client";
|
|
|
|
import { OrgChart as CoreOrgChart } from './OrgChart.js';
|
|
import HMEmployeeDialog from './HMEmployeeDialog.js';
|
|
import type { OrgChartProps } from './types.js';
|
|
|
|
/** HM integration is explicit at the import and popup setting boundaries. */
|
|
export function OrgChart(props: OrgChartProps) {
|
|
return <CoreOrgChart {...props} employeePopupAdapter={props.employeePopupAdapter ?? HMEmployeeDialog} />;
|
|
}
|
|
|
|
export { HMEmployeeDialog };
|
|
export type { OrgChartProps, OrgChartEmployeeSelection, OrgChartEmployeePopupProps } from './types.js';
|
|
export type * from '@hm-design/org-chart';
|