Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
39 lines
1004 B
Plaintext
39 lines
1004 B
Plaintext
"use client";
|
|
import {
|
|
avatar_default
|
|
} from "./chunk-SXMLSBOY.mjs";
|
|
import {
|
|
useAvatarGroup
|
|
} from "./chunk-QH65JCLF.mjs";
|
|
import {
|
|
AvatarGroupProvider
|
|
} from "./chunk-JUJ53SJZ.mjs";
|
|
|
|
// src/avatar-group.tsx
|
|
import { forwardRef } from "@heroui/system";
|
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
var AvatarGroup = forwardRef((props, ref) => {
|
|
const {
|
|
Component,
|
|
clones,
|
|
context,
|
|
remainingCount,
|
|
getAvatarGroupCountProps,
|
|
getAvatarGroupProps,
|
|
renderCount = (count) => /* @__PURE__ */ jsx(avatar_default, { ...getAvatarGroupCountProps(), name: `+${count}` })
|
|
} = useAvatarGroup({
|
|
...props,
|
|
ref
|
|
});
|
|
return /* @__PURE__ */ jsx(Component, { ...getAvatarGroupProps(), children: /* @__PURE__ */ jsxs(AvatarGroupProvider, { value: context, children: [
|
|
clones,
|
|
remainingCount > 0 && renderCount(remainingCount)
|
|
] }) });
|
|
});
|
|
AvatarGroup.displayName = "HeroUI.AvatarGroup";
|
|
var avatar_group_default = AvatarGroup;
|
|
|
|
export {
|
|
avatar_group_default
|
|
};
|