Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import { useAtom } from 'jotai';
import { Dropdown } from '@librechat/client';
import type { ClockFormatPreference } from '~/store/clockFormat';
import { clockFormatAtom } from '~/store/clockFormat';
import { useLocalize } from '~/hooks';
export default function ClockFormatSelector() {
const localize = useLocalize();
const [clockFormat, setClockFormat] = useAtom(clockFormatAtom);
const options = [
{ value: 'system', label: localize('com_nav_clock_format_system') },
{ value: '12h', label: localize('com_nav_clock_format_12h') },
{ value: '24h', label: localize('com_nav_clock_format_24h') },
];
const labelId = 'clock-format-selector-label';
return (
<div className="flex w-full flex-wrap items-center justify-between gap-2">
<div id={labelId}>{localize('com_nav_clock_format')}</div>
<Dropdown
value={clockFormat}
options={options}
onChange={(value) => setClockFormat(value as ClockFormatPreference)}
testId="clock-format-selector"
sizeClasses="w-[150px]"
className="z-50"
aria-labelledby={labelId}
/>
</div>
);
}