1
0
Fork 0
react-playground/node_modules/@mui/x-date-pickers/esm/hooks/useIsValidValue.js
Techognito fc0f69dacb Added Statistics calculation
Statistics now show calculated values
2025-09-04 17:30:00 +02:00

12 lines
No EOL
436 B
JavaScript

'use client';
import * as React from 'react';
export const IsValidValueContext = /*#__PURE__*/React.createContext(() => true);
/**
* Returns a function to check if a value is valid according to the validation props passed to the parent Picker.
*/
if (process.env.NODE_ENV !== "production") IsValidValueContext.displayName = "IsValidValueContext";
export function useIsValidValue() {
return React.useContext(IsValidValueContext);
}