import { jsx as _jsx } from "react/jsx-runtime";
import Created from '../../icon-components/Created.js';
import DescendenceModified from '../../icon-components/DescendenceModified.js';
import Duplicated from '../../icon-components/Duplicated.js';
import Modified from '../../icon-components/Modified.js';
import Moved from '../../icon-components/Moved.js';
import Removed from '../../icon-components/Removed.js';
import { NodeStatus } from '../types.js';
const STATUS_ICON_MAP = {
    [NodeStatus.CREATED]: {
        icon: _jsx(Created, { height: 16, width: 16, className: "text-green-900" }),
    },
    [NodeStatus.MODIFIED]: {
        icon: _jsx(Modified, { height: 16, width: 16, className: "text-blue-900" }),
    },
    [NodeStatus.REMOVED]: {
        icon: _jsx(Removed, { height: 16, width: 16, className: "text-red-900" }),
    },
    [NodeStatus.MOVED]: {
        icon: _jsx(Moved, { height: 16, width: 16, className: "text-blue-900" }),
    },
    [NodeStatus.DUPLICATED]: {
        icon: _jsx(Duplicated, { height: 16, width: 16, className: "text-blue-900" }),
    },
};
export const StatusIcon = ({ status, isDescendenceModified }) => {
    if (status === NodeStatus.UNCHANGED) {
        return isDescendenceModified ? _jsx(DescendenceModified, { height: 16, width: 16, className: "text-gray-500" }) : null;
    }
    return STATUS_ICON_MAP[status].icon;
};
//# sourceMappingURL=status-icon.js.map