mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 21:47:57 +00:00
34 lines
723 B
TypeScript
34 lines
723 B
TypeScript
// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import React from 'react';
|
|
|
|
import Button from '../Button/index.js';
|
|
import { styled } from '../styled.js';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
function Actions ({ children, className = '' }: Props): React.ReactElement<Props> {
|
|
return (
|
|
<StyledDiv className={`${className} ui--Modal-Actions`}>
|
|
<Button.Group>
|
|
{children}
|
|
</Button.Group>
|
|
</StyledDiv>
|
|
);
|
|
}
|
|
|
|
const StyledDiv = styled.div`
|
|
background-color: var(--bg-input);
|
|
border-radius: 0 0 4px 4px;
|
|
|
|
.ui--Button-Group {
|
|
margin: 1rem 1rem;
|
|
}
|
|
`;
|
|
|
|
export default React.memo(Actions);
|