import type { FC, HTMLAttributes } from 'react';
import styles from './plus-minus-icon.module.scss';
export type PlusMinusIconShape = 'minus' | 'plus';
export type PlusMinusIconProps = Omit<
HTMLAttributes,
'children'
> & {
/**
* Which shape should be displayed.
*/
shape: PlusMinusIconShape;
};
/**
* PlusMinusIcon component
*
* Render a plus or a minus icon.
*/
export const PlusMinusIcon: FC = ({
className = '',
shape,
...props
}) => {
const shapeClass = styles[`icon--${shape}`];
const iconClass = `${styles.icon} ${shapeClass} ${className}`;
return ;
};