mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Add a loading experience when waiting for khoj response
This commit is contained in:
@@ -8,10 +8,14 @@ export default function Loading() {
|
||||
);
|
||||
}
|
||||
|
||||
export function InlineLoading() {
|
||||
interface InlineLoadingProps {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function InlineLoading(props: InlineLoadingProps) {
|
||||
return (
|
||||
<button>
|
||||
<CircleNotch className='animate-spin h-5 w-5 mr-3' />
|
||||
<CircleNotch className={`animate-spin h-5 w-5 mr-3 ${props.className}`} />
|
||||
</button>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user