import React, { FC } from 'react'; import classNames from 'classnames'; import styles from './styles.module.scss'; export interface PlaceholderProps { width?: string; height?: number; color?: string; active?: boolean; loading?: boolean; className?: string; } const Placeholder: FC = ({ width = '120px', height, color, active, children, loading = true, className, }) => { return active ? (
) : ( <>{children} ); }; export { Placeholder };