Open History to see the last commit
1import * as React from 'react'
2β
3export function Spinner({
4 show,
5 wait,
6}: {
7 show?: boolean
8 wait?: `delay-${number}`
9}) {
10 return (
11 <div
12 className={`inline-block animate-spin px-3 transition ${
13 (show ?? true)
14 ? `opacity-100 duration-500 ${wait ?? 'delay-300'}`
15 : 'duration-500 opacity-0 delay-0'
16 }`}
17 >
18 β₯
19 </div>
20 )
21}