Files
Genarrative/src/components/common/PlatformProfileSkeletonList.tsx
T
kdletters d08842b576 继续沉淀工具信息弹窗与个人中心内容骨架
新增PlatformUtilityInfoModal统一工具信息弹窗白底骨架
收口profile副弹层的摘要头列表骨架与内容行
同步更新PlatformUiKit收口计划与共享决策记录
2026-06-11 06:07:30 +08:00

32 lines
753 B
TypeScript

type PlatformProfileSkeletonListProps = {
count: number;
containerClassName?: string;
itemClassName?: string;
};
/**
* 个人中心白底 modal 列表读取骨架。
* 只负责重复 skeleton 行与容器节奏,行高和栅格继续由调用方微调。
*/
export function PlatformProfileSkeletonList({
count,
containerClassName,
itemClassName,
}: PlatformProfileSkeletonListProps) {
return (
<div className={containerClassName}>
{Array.from({ length: count }).map((_, index) => (
<div
key={index}
className={[
'animate-pulse rounded-xl bg-zinc-100',
itemClassName,
]
.filter(Boolean)
.join(' ')}
/>
))}
</div>
);
}