UNPKG

@crossed/ui

Version:

A universal & performant styling library for React Native, Next.js & React

26 lines (25 loc) 651 B
import { jsx } from "react/jsx-runtime"; import { memo, useCallback } from "react"; import { growStyles } from "../../styles"; import { Select } from "../Select"; import { YBox } from "../../layout"; const SelectMonth = memo( ({ month, onChange, months }) => { const handleChange = useCallback( (e) => onChange(Number(e)), [onChange] ); return /* @__PURE__ */ jsx(YBox, { style: growStyles.on, children: /* @__PURE__ */ jsx( Select, { value: month.toString(), onChange: handleChange, items: months } ) }); } ); export { SelectMonth }; //# sourceMappingURL=SelectMonth.js.map