Matching Customers
{preview && (
{total.toLocaleString()} total
)}
{rules.filters.length === 0 ? (
{Icons.users("w-10 h-10 text-[var(--admin-text-muted)] mx-auto mb-3")}
Add filters to see matching customers
) : loading ? (
{Icons.spinner("h-5 w-5 animate-spin")}
Loading…
) : (
<>
{paged.length === 0 ? (
No customers match these filters.
) : (
{paged.map((c) => (
{c.name ? c.name.slice(0, 2).toUpperCase() : "??"}
{c.name || "(no name)"}
{c.email}
{c.tags.length > 0 && (
{c.tags.slice(0, 2).map((tag) => (
{tag}
))}
)}
))}
)}
{searched.length > PAGE_SIZE && (
Showing {page * PAGE_SIZE + 1}–{Math.min((page + 1) * PAGE_SIZE, searched.length)} of {searched.length}
)}
>
)}
);
}
type Props = {
brandId: string;
rules: SegmentRuleV2;
};