/**
 * 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 ViewListLoader() {
  return (
    <div className="flex h-full w-full flex-col animate-pulse">
      {range(8).map((i) => (
        <div key={i} className="group border-b border-subtle">
          <div className="relative flex w-full items-center justify-between rounded-sm p-4">
            <div className="flex items-center gap-4">
              <span className="min-h-10 min-w-10 bg-layer-1 rounded-sm" />
              <span className="h-6 w-28 bg-layer-1 rounded-sm" />
            </div>
            <div className="flex items-center gap-2">
              <span className="h-5 w-5 bg-layer-1 rounded-sm" />
              <span className="h-5 w-5 bg-layer-1 rounded-sm" />
            </div>
          </div>
        </div>
      ))}
    </div>
  );
}
