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; expanded?: boolean; } let Separator: FunctionComponent = ({ className, wide, expanded, ...restProps }: SeparatorProps) => { const platform = usePlatform(); return (
); }; export default React.memo(Separator);