16 lines
455 B
TypeScript
16 lines
455 B
TypeScript
|
import React from "react";
|
||
|
|
||
|
import classNames from "@calcom/lib/classNames";
|
||
|
|
||
|
type Props = { children: React.ReactNode; combined?: boolean; containerProps?: JSX.IntrinsicElements["div"] };
|
||
|
|
||
|
export default function ButtonGroup({ children, combined = false, containerProps }: Props) {
|
||
|
return (
|
||
|
<div
|
||
|
{...containerProps}
|
||
|
className={classNames("flex", !combined && "space-x-2", containerProps?.className)}>
|
||
|
{children}
|
||
|
</div>
|
||
|
);
|
||
|
}
|