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

34 lines
848 B
TypeScript

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