import { ReactElement } from 'react'; export interface LoaderProps { loading?: boolean; children?: ReactElement | ReactElement[]; height?: string; } const Loader = ({ loading = true, children, height }: LoaderProps) => { return ( <> {loading ? (