import React from "react";
import styled from "styled-components";
import { Colors } from "constants/Colors";
import { BaseTextInput } from "components/designSystems/appsmith/TextInputComponent";

const Container = styled.div`
  .heading {
    font-size: 16px;
    line-height: 32px;
    font-weight: 500;
  }
`;
const SearchBar = styled(BaseTextInput)`
  margin-bottom: 10px;
  input {
    background-color: ${Colors.WHITE};
    1px solid ${Colors.GEYSER};
  }
`;

class Search extends React.Component {
  handleSearchChange = (e: any) => {
    console.log("test");
  };

  render() {
    return (
      <Container>
        <SearchBar
          icon="search"
          input={{
            onChange: this.handleSearchChange,
          }}
          placeholder="Search"
        />
        <p className="heading">Providers</p>
      </Container>
    );
  }
}

export default Search;
