MyCrypto/common/containers/Tabs/ENS/components/ENS.tsx

34 lines
820 B
TypeScript

import React from 'react';
import { GeneralInfoPanel } from './GeneralInfoPanel';
import Title from './Title';
import UnfinishedBanner from './UnfinishedBanner';
import App from 'containers/App';
interface ContainerTabPaneActiveProps {
children: React.ReactElement<any> | React.ReactElement<any>[];
}
const ContainerTabPaneActive = ({ children }: ContainerTabPaneActiveProps) => (
<App>
<section className="container">
<div className="tab-content">
<main className="tab-pane active">
<section role="main" className="row">
{children}
</section>
</main>
</div>
</section>
</App>
);
const ENS = () => (
<ContainerTabPaneActive>
<UnfinishedBanner />
<Title />
<GeneralInfoPanel />
</ContainerTabPaneActive>
);
export default ENS;