import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { SearchForm } from "./search";
import { X } from "lucide-react";
export const Header = (props)=>{
    const onClick = ()=>{
        props.onClose?.();
    };
    return /*#__PURE__*/ _jsxs("div", {
        className: "orderly-flex orderly-items-center orderly-px-5 orderly-pt-5 orderly-pb-2 orderly-bg-base-800",
        children: [
            /*#__PURE__*/ _jsx("div", {
                className: "orderly-w-full orderly-mr-2",
                children: /*#__PURE__*/ _jsx(SearchForm, {
                    onSearch: props.onSearch,
                    keyword: props.keyword,
                    onMoving: props.onMoving,
                    onSymbolSelect: props.onSymbolSelect
                })
            }),
            /*#__PURE__*/ _jsx("button", {
                className: "orderly-text-base-contrast-80 hover:orderly-bg-tertiary/10 orderly-h-full orderly-px-2 orderly-rounded",
                onClick: onClick,
                children: /*#__PURE__*/ _jsx(X, {
                    size: 20
                })
            })
        ]
    });
};

//# sourceMappingURL=header.js.map