import { LoaderProps } from './types'
import { Wrapper, Circles } from './styled'

export const Loader = ({ color, diameter }: LoaderProps) => (
  <Wrapper color={color} diameter={diameter}>
    <Circles color={color} />
  </Wrapper>
)

export const LoaderUI = {
  Circles,
  Loader,
  Wrapper,
}
