mirror of
https://github.com/supabase/supabase.git
synced 2026-07-03 21:54:19 +08:00
16 lines
338 B
TypeScript
16 lines
338 B
TypeScript
import React from 'react'
|
|
|
|
const LoadingOpacity = ({ children, active }: { children?: React.ReactNode; active: boolean }) => {
|
|
return (
|
|
<div
|
|
className={
|
|
'flex h-full flex-grow transition-opacity ' + (active ? 'opacity-30' : 'opacity-100')
|
|
}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default LoadingOpacity
|