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

import type { Proposals } from '../types.js';

import React from 'react';

import Actions from './Actions.js';
import ProposalList from './Proposals.js';

interface Props {
  className?: string;
  proposals?: Proposals;
}

function ProposalsTab ({ className, proposals }: Props): React.ReactElement<Props> {
  return (
    <div className={className}>
      <Actions />
      <ProposalList proposals={proposals} />
    </div>
  );
}

export default React.memo(ProposalsTab);
