ghost-portal/packages/react-components/src/Menu/Divider.tsx
Jaco a7fade8724
Jest config cleanup (#6053)
* Jest config cleanup

* auto-lint fixes
2021-09-01 21:38:45 +03:00

23 lines
580 B
TypeScript

// Copyright 2017-2021 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DividerProps } from '@polkadot/react-components/Menu/types';
import React from 'react';
import styled from 'styled-components';
function Divider ({ className = '' }: DividerProps): React.ReactElement {
return (
<div className={`ui--Menu__Divider ${className}`} />
);
}
export default React.memo(styled(Divider)`
margin: 0.25rem 0 1rem;
border-top: 1px solid var(--border-table);
&:first-child, &:last-child {
display: none
}
`);