import { HTMLAttributes } from 'react';
import { Button, IconSize } from '@grafana/ui';
interface Props extends HTMLAttributes {
isCollapsed: boolean;
onToggle: (isCollapsed: boolean) => void;
// Todo: this should be made compulsory for a11y purposes
idControlled?: string;
size?: IconSize;
className?: string;
text?: string;
}
export const CollapseToggle = ({
isCollapsed,
onToggle,
idControlled,
className,
text,
size = 'xl',
...restOfProps
}: Props) => {
return (
);
};