import {
    BaseDraggable,
    BaseGroupDraggable,
} from "@/components/dnd/types/types";

const isItemGroup = <
    TItem extends BaseDraggable,
    TGroup extends BaseGroupDraggable<TItem>,
>(
    item: TItem | TGroup
): boolean => {
    return "items" in item;
};

export default isItemGroup;
