mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-07-31 04:15:42 +00:00
36 lines
841 B
TypeScript
36 lines
841 B
TypeScript
// Copyright 2017-2026 @pezkuwi/app-contracts authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { AppProps as Props } from '@pezkuwi/react-components/types';
|
|
|
|
import React, { useRef } from 'react';
|
|
|
|
import { Tabs } from '@pezkuwi/react-components';
|
|
|
|
import Contracts from './Contracts/index.js';
|
|
import { useTranslation } from './translate.js';
|
|
|
|
function ContractsApp ({ basePath, className = '' }: Props): React.ReactElement<Props> {
|
|
const { t } = useTranslation();
|
|
|
|
const itemsRef = useRef([
|
|
{
|
|
isRoot: true,
|
|
name: 'contracts',
|
|
text: t('Contracts')
|
|
}
|
|
]);
|
|
|
|
return (
|
|
<main className={`${className} contracts--App`}>
|
|
<Tabs
|
|
basePath={basePath}
|
|
items={itemsRef.current}
|
|
/>
|
|
<Contracts />
|
|
</main>
|
|
);
|
|
}
|
|
|
|
export default React.memo(ContractsApp);
|