* Refactor AI course * Add AI course generation functionality * Add basic error handling * AI Document content * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * feat: regenerate guide * wip * wip * wip * wip * wip * fix: form ui * feat: update guide ui * refactor: update the course card * fix: term and redirects * Guide page UI improvements * Loading chip refactor * AI guide changes * Improve UI for ai guide content * Add AI guide * AI Guide chat * fix: stop streaming * fix: chat responsiveness * UI improvements for ai library * Guide listing UI update * User guides listing * Library guides listing UI * Library guides listing UI * Featured courses listing UI update * Staff picks UI changes * Community page UI design * Explore courses listing functionality * Improve UI for explore page * Implement guides functionality --------- Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
17 lines
437 B
TypeScript
17 lines
437 B
TypeScript
import { Loader2Icon } from 'lucide-react';
|
|
|
|
type LoadingChipProps = {
|
|
message?: string;
|
|
};
|
|
|
|
export function LoadingChip(props: LoadingChipProps) {
|
|
const { message = 'Please wait...' } = props;
|
|
|
|
return (
|
|
<div className="flex items-center gap-2 rounded-lg border border-gray-300 bg-white py-2 pr-4 pl-3 text-sm">
|
|
<Loader2Icon className="size-4 animate-spin text-gray-400" />
|
|
<span>{message}</span>
|
|
</div>
|
|
);
|
|
}
|