mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
26 lines
417 B
TypeScript
26 lines
417 B
TypeScript
import React from 'react'
|
|
|
|
const LoadingOpacity = ({
|
|
children,
|
|
active,
|
|
className,
|
|
}: {
|
|
children?: React.ReactNode
|
|
active: boolean
|
|
className?: string
|
|
}) => {
|
|
return (
|
|
<div
|
|
className={[
|
|
className,
|
|
'flex h-full flex-grow transition-opacity ',
|
|
active ? 'opacity-30' : 'opacity-100',
|
|
].join(' ')}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default LoadingOpacity
|