SearchButton.tsx 465 B

123456789101112131415161718
  1. import { Button } from "antd";
  2. import { Link } from "react-router";
  3. import { SearchOutlined } from "@ant-design/icons";
  4. interface IWidget {
  5. style?: React.CSSProperties;
  6. }
  7. const SearchButtonWidget = ({ style }: IWidget) => {
  8. return (
  9. <Button type="text" size="small" style={style}>
  10. <Link to="/search/home" target={"_blank"}>
  11. <SearchOutlined style={{ color: "white" }} />
  12. </Link>
  13. </Button>
  14. );
  15. };
  16. export default SearchButtonWidget;