RocketChat/Rocket.Chat

View on GitHub
packages/ui-video-conf/src/VideoConfMessage/VideoConfMessageButton.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Box, Button } from '@rocket.chat/fuselage';
import type { AllHTMLAttributes, ReactElement, ReactNode } from 'react';

const VideoConfMessageButton = ({
    children,
    primary,
    ...props
}: { children: ReactNode; primary?: boolean } & Omit<AllHTMLAttributes<HTMLButtonElement>, 'is'>): ReactElement => (
    <Box mi={4}>
        <Button small primary={primary} {...props}>
            {children}
        </Button>
    </Box>
);
export default VideoConfMessageButton;