// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import Badge from '../Badge'; import { BaseProps, FocusableProps } from '../Base'; import Flex from '../Flex'; import { StyledGroup, StyledGroupWrapper, StyledTitle } from './Styled'; export interface RosterGroupProps extends BaseProps, FocusableProps { /** The title of the roster group. */ title?: string; /** The number of attendees within one roster group. */ badge?: number; } export const RosterGroup: React.FC< React.PropsWithChildren > = ({ tag, title, badge, className, children, ...rest }) => { return ( {title && ( {title} {typeof badge === 'number' && badge > -1 && } )} {children} ); }; export default RosterGroup;