import { useState } from 'react'; import { CheckCircleIcon } from '@shared/icons'; export function CacheTimeSetting() { const [time, setTime] = useState('0'); const update = async () => { // await updateSetting('cache_time', time); }; return (
Cache time (milliseconds) The length of time before inactive data gets removed from the cache
setTime(e.currentTarget.value)} autoCapitalize="none" autoCorrect="none" className="h-8 w-24 rounded-md bg-neutral-800 px-2 text-right font-medium text-neutral-300 focus:outline-none" />
); }