/**
 * Copyright (c) 2023-present Plane Software, Inc. and contributors
 * SPDX-License-Identifier: AGPL-3.0-only
 * See the LICENSE file for details.
 */

import { range } from "lodash-es";

export function CycleModuleBoardLayoutLoader() {
  return (
    <div className="h-full w-full animate-pulse">
      <div className="flex h-full w-full justify-between">
        <div className="grid h-full w-full grid-cols-1 gap-6 overflow-y-auto p-8 lg:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4 auto-rows-max transition-all">
          {range(5).map((i) => (
            <div
              key={i}
              className="flex h-44 w-full flex-col justify-between rounded-sm  border border-subtle bg-surface-1 p-4 text-13"
            >
              <div className="flex items-center justify-between">
                <span className="h-6 w-24 bg-layer-1 rounded-sm" />
                <div className="flex items-center gap-2">
                  <span className="h-6 w-20 bg-layer-1 rounded-sm" />
                  <span className="h-6 w-6 bg-layer-1 rounded-sm" />
                </div>
              </div>
              <div className="flex flex-col gap-3">
                <div className="flex items-center justify-between">
                  <div className="flex items-center gap-2">
                    <span className="h-5 w-5 bg-layer-1 rounded-sm" />
                    <span className="h-5 w-20 bg-layer-1 rounded-sm" />
                  </div>
                  <span className="h-5 w-5 bg-layer-1 rounded-full" />
                </div>
                <span className="h-1.5 bg-layer-1 rounded-sm" />
                <div className="flex items-center justify-between">
                  <div className="flex items-center">
                    <span className="h-4 w-16 bg-layer-1 rounded-sm" />
                  </div>
                  <div className="flex items-center gap-2">
                    <span className="h-4 w-4 bg-layer-1 rounded-sm" />
                    <span className="h-4 w-4 bg-layer-1 rounded-sm" />
                  </div>
                </div>
              </div>
            </div>
          ))}
        </div>
      </div>
    </div>
  );
}
