// Copyright © Selmo Technology GmbH. All Rights Reserved

namespace SelmoStudio.Hmi.Server.Pagination
{
    internal class ScreenSizeHelper
    {
        internal static readonly int PaginationMaxSequencesScreenWidth = 1910;
        internal static readonly int PaginationMidSequencesScreenWidth = 1240;
        internal static readonly int PaginationMaxSequencesPageSize = 3;
        internal static readonly int PaginationMidSequencesPageSize = 2;
        internal static readonly int PaginationMinSequencesPageSize = 1;

        internal static int GetPageSize(int width)
        {
            return width > PaginationMaxSequencesScreenWidth ? PaginationMaxSequencesPageSize
                : width > PaginationMidSequencesScreenWidth ? PaginationMidSequencesPageSize : PaginationMinSequencesPageSize;
        }
    }
}