/**
 * Взаимодействие с Drawer оконами.
 */ const getDrawers = (items)=>{
    return items.filter((item)=>item?.info?.isDrawer);
};
export const hasDrawers = (items)=>{
    return getDrawers(items).length > 0;
};
export const getIdLastDrawer = (items)=>{
    const drawers = getDrawers(items);
    if (!drawers.length) {
        return;
    }
    return drawers[drawers.length - 1].id;
};
export const getIdFirstDrawer = (items)=>{
    const drawers = getDrawers(items);
    if (!drawers.length) {
        return;
    }
    return drawers[0].id;
};
