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 { Button, EmptyState } from '@librechat/client';
import { CalendarClock, TriangleAlert } from 'lucide-react';
import { useLocalize } from '~/hooks';
interface ScheduleEmptyStateProps {
canCreate?: boolean;
isError?: boolean;
isFiltered?: boolean;
onRetry?: () => void;
}
export default function ScheduleEmptyState({
canCreate = false,
isError = false,
isFiltered = false,
onRetry,
}: ScheduleEmptyStateProps) {
const localize = useLocalize();
if (isError) {
return (
<EmptyState
icon={TriangleAlert}
title={localize('com_ui_schedules_error')}
action={
<Button type="button" variant="outline" size="sm" onClick={onRetry}>
{localize('com_ui_retry')}
</Button>
}
/>
);
}
if (isFiltered) {
return <EmptyState icon={CalendarClock} description={localize('com_ui_no_schedules_match')} />;
}
return (
<EmptyState
icon={CalendarClock}
title={localize('com_ui_no_schedules_title')}
// Only invite creation where the panel actually offers it: a USE-only role
// has no create button, so telling it to create one is a dead end.
description={canCreate ? localize('com_ui_no_schedules') : undefined}
/>
);
}