import React from "react";
import Select from "./components/Select";
import { ILang } from "./interface";
import locale from "./locale/";
import { SelectProps } from "./components/PropsInterface";
export * from "./interface";

export * from "./components/PropsInterface";
export interface NormalSelectProps extends SelectProps {
  lang?: ILang;
}
const NormalSelect: React.FC<NormalSelectProps> = ({
  lang = "zh_CN",
  translation = {},
  ...props
}) => {
  return (
    <Select translation={{ ...locale[lang], ...translation }} {...props} />
  );
};

export default NormalSelect;
