export const EMPTY_PAGEABLE = {
    page: 0,
    size: 10,
    seed: 1,
};
export const EMPTY_GRID_PAGEABLE = {
    page: 0,
    size: 12,
    seed: 1,
};
export function convertPageable(pageable) {
    const sort = [];
    if (pageable.sort) {
        pageable.sort.forEach((item, index) => {
            sort.push(`${item.id},${item.desc ? 'desc' : 'asc'}`);
        });
    }
    return { ...pageable, sort: sort.join(',') };
}
