ghost-portal/packages/react-params/src/Param/Bare.tsx
2022-01-01 09:30:15 +02:00

23 lines
489 B
TypeScript

// Copyright 2017-2022 @polkadot/react-params authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import styled from 'styled-components';
interface Props {
children?: React.ReactNode;
className?: string;
}
function Bare ({ children, className = '' }: Props): React.ReactElement<Props> {
return (
<div className={`ui--row ${className}`}>
{children}
</div>
);
}
export default React.memo(styled(Bare)`
position: relative;
`);