Files
HMDesign/packages/org-chart-react/src/hm-dialog.tsx
T

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';