HeadBar.tsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { _Link } from "react-router";
  2. import { Input, Layout, Space } from "antd";
  3. import img_banner from "../../assets/studio/images/wikipali_banner.svg";
  4. import UiLangSelect from "../general/UiLangSelect";
  5. import SignInAvatar from "../auth/SignInAvatar";
  6. import ToLibrary from "../auth/ToLibrary";
  7. import ThemeSelect from "../general/ThemeSelect";
  8. import NotificationIcon from "../notification/NotificationIcon";
  9. import SoftwareEdition from "../auth/SoftwareEdition";
  10. const { Search } = Input;
  11. const { Header } = Layout;
  12. const onSearch = (value: string) => console.log(value);
  13. const HeadBarWidget = () => {
  14. return (
  15. <Header
  16. className="header"
  17. style={{
  18. lineHeight: "44px",
  19. height: 44,
  20. paddingLeft: 10,
  21. paddingRight: 10,
  22. }}
  23. >
  24. <div
  25. style={{
  26. display: "flex",
  27. width: "100%",
  28. height: "100%",
  29. justifyContent: "space-between",
  30. }}
  31. >
  32. <div style={{ display: "flex" }}>
  33. <img alt="code" style={{ height: 36 }} src={img_banner} />
  34. <SoftwareEdition style={{ color: "white" }} />
  35. </div>
  36. <div style={{ width: 500, lineHeight: 44 }}>
  37. <Search
  38. disabled
  39. placeholder="input search text"
  40. onSearch={onSearch}
  41. style={{ width: "100%" }}
  42. />
  43. </div>
  44. <div>
  45. <Space>
  46. <ToLibrary />
  47. <SignInAvatar />
  48. <NotificationIcon />
  49. <UiLangSelect />
  50. <ThemeSelect />
  51. </Space>
  52. </div>
  53. </div>
  54. </Header>
  55. );
  56. };
  57. export default HeadBarWidget;