/*
Copyright (C) 2025 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Card, Skeleton } from '@douyinfe/semi-ui';
const PricingCardSkeleton = ({
skeletonCount = 100,
rowSelection = false,
showRatio = false,
}) => {
const placeholder = (
{Array.from({ length: skeletonCount }).map((_, index) => (
{/* 头部:图标 + 模型名称 + 操作按钮 */}
{/* 模型图标骨架 */}
{/* 模型名称和价格区域 */}
{/* 模型名称骨架 */}
{/* 价格信息骨架 */}
{/* 复制按钮骨架 */}
{/* 勾选框骨架 */}
{rowSelection && (
)}
{/* 模型描述骨架 */}
{/* 标签区域骨架 */}
{Array.from({ length: 2 + (index % 3) }).map((_, tagIndex) => (
))}
{/* 倍率信息骨架(可选) */}
{showRatio && (
{Array.from({ length: 3 }).map((_, ratioIndex) => (
))}
)}
))}
{/* 分页骨架 */}
);
return ;
};
export default PricingCardSkeleton;