import { useState, useEffect } from 'react';
import { usePreference } from './usePreference';
/**
* Get the props for a preference input that changes the value on blur
*
* Relies on `usePreference`, so it's using the PreferenceKeyContext
*
* @example
* const FontSizePreferenceInput = () => {
* const field = usePreferenceInput('ui.font.size', 10);
* return (
*