import React, { Component } from "react";
import { Nav, Tabs, Tab, Row, Col } from "react-bootstrap";

class EfeTabs extends Component<any, any> {
  randomText =
    "Loremm Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";

  render() {
    return (
      <div>
        <h6>Basic Tabs</h6>
        <hr />
        <Tabs defaultActiveKey="profile" id="uncontrolled-tab-example">
          <Tab eventKey="home" title="Home">
            {this.randomText}
          </Tab>
          <Tab eventKey="profile" title="Profile">
            {this.randomText}
          </Tab>
          <Tab eventKey="contact" title="Contact">
            {this.randomText}
          </Tab>
          <Tab eventKey="private" title="Private" disabled>
            {this.randomText}
          </Tab>
        </Tabs>
        <h6>Basic Tabs with Icons</h6>
        <hr />
        <Tabs defaultActiveKey="profile" id="uncontrolled-tab-example">
          <Tab eventKey="home" title={<i className={`i-Safe-Box1`}> Home</i>}>
            {this.randomText}
          </Tab>
          <Tab
            eventKey="profile"
            title={<i className={`i-Administrator`}> Profile</i>}
          >
            {this.randomText}
          </Tab>
          <Tab eventKey="contact" title={<i className={`i-Email`}> Contact</i>}>
            {this.randomText}
          </Tab>
          <Tab
            eventKey="private"
            title={<i className={`i-Email`}>Private</i>}
            disabled
          >
            {this.randomText}
          </Tab>
        </Tabs>
        <h6>Column Pills</h6>
        <hr />
        <Tab.Container id="left-tabs-example" defaultActiveKey="first">
          <Row>
            <Col sm={3}>
              <Nav variant="pills" className="flex-column">
                <Nav.Item>
                  <Nav.Link eventKey="first">Tab 1</Nav.Link>
                </Nav.Item>
                <Nav.Item>
                  <Nav.Link eventKey="second">Tab 2</Nav.Link>
                </Nav.Item>
                <Nav.Item>
                  <Nav.Link eventKey="third" disabled>
                    Tab 3
                  </Nav.Link>
                </Nav.Item>
              </Nav>
            </Col>
            <Col sm={9}>
              <Tab.Content>
                <Tab.Pane eventKey="first">{this.randomText}</Tab.Pane>
                <Tab.Pane eventKey="second">{this.randomText}</Tab.Pane>
              </Tab.Content>
            </Col>
          </Row>
        </Tab.Container>
        <h6>Row Tabs</h6>
        <hr />
        <Tab.Container id="left-tabs-example" defaultActiveKey="first">
          <Row>
            <Col sm={12}>
              <Nav variant="pills" className="flex-row">
                <Nav.Item>
                  <Nav.Link eventKey="first">Tab 1</Nav.Link>
                </Nav.Item>
                <Nav.Item>
                  <Nav.Link eventKey="second">Tab 2</Nav.Link>
                </Nav.Item>
                <Nav.Item>
                  <Nav.Link eventKey="third" disabled>
                    Tab 3
                  </Nav.Link>
                </Nav.Item>
              </Nav>
            </Col>
            <Col sm={12}>
              <Tab.Content>
                <Tab.Pane eventKey="first">{this.randomText}</Tab.Pane>
                <Tab.Pane eventKey="second">{this.randomText}</Tab.Pane>
              </Tab.Content>
            </Col>
          </Row>
        </Tab.Container>
      </div>
    );
  }
}

export default EfeTabs;
