import React, { FunctionComponent, HTMLAttributes } from 'react'; import getClassName from '../../helpers/getClassName'; import classNames from '../../lib/classNames'; import usePlatform from '../../hooks/usePlatform'; export interface SeparatorProps extends HTMLAttributes { /** * С этим свойством компонент не будет иметь отступы слева и справа */ wide?: boolean; } const Separator: FunctionComponent = ({ className, wide, ...restProps }: SeparatorProps) => { const platform = usePlatform(); return (
); }; export default React.memo(Separator);