@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
26 lines (23 loc) • 772 B
JavaScript
'use client';
import { variants } from "./style.mjs";
import { memo } from "react";
import { jsx } from "react/jsx-runtime";
import { AutoComplete } from "antd";
import { cx, useThemeMode } from "antd-style";
//#region src/AutoComplete/Select.tsx
const AutoComplete$1 = memo(({ variant, shadow, className, ...rest }) => {
const { isDarkMode } = useThemeMode();
return /* @__PURE__ */ jsx(AutoComplete, {
className: cx(variants({
shadow,
variant: variant || (isDarkMode ? "filled" : "outlined")
}), className),
variant: variant || (isDarkMode ? "filled" : "outlined"),
...rest
});
});
AutoComplete$1.displayName = "AutoComplete";
var Select_default = AutoComplete$1;
//#endregion
export { Select_default as default };
//# sourceMappingURL=Select.mjs.map