// Copyright 2017-2026 @pezkuwi/app-nfts authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { BN } from '@pezkuwi/util';
import type { CollectionInfo } from '../types.js';

import React from 'react';

import Collections from './Collections.js';
import Summary from './Summary.js';

interface Props {
  className?: string;
  ids?: BN[];
  infos?: CollectionInfo[];
}

function Overview ({ className, ids, infos }: Props): React.ReactElement<Props> {
  return (
    <div className={className}>
      <Summary numCollections={ids?.length} />
      <Collections infos={infos} />
    </div>
  );
}

export default React.memo(Overview);
