Add a loading experience when waiting for khoj response

This commit is contained in:
sabaimran
2024-07-04 13:49:51 +05:30
parent 34118078bf
commit 465ef0b772
2 changed files with 47 additions and 38 deletions

View File

@@ -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>
)
}