// Copyright 2017-2023 @polkadot/react-params authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { Props, RawParamOnChangeValue } from '../types.js'; import React, { useCallback } from 'react'; import { Static } from '@polkadot/react-components'; import Amount from './Amount.js'; function Moment ({ className = '', defaultValue, isDisabled, isError, label, onChange, onEnter, onEscape, registry, type, withLabel }: Props): React.ReactElement { const _onChange = useCallback( (value: RawParamOnChangeValue) => onChange && onChange(value), [onChange] ); if (isDisabled) { return ( ); } return ( ); } export default React.memo(Moment);