;
/**
* A utility component that wraps children into spans and adds middledots
* between each item using CSS ::before pseudo elements.
*/
export function MiddotSeparated(props: MiddotSeparatedProps) {
const { children, ...divProps } = props;
return (
{Children.toArray(children)
.filter((item) => item !== "")
.map((item, index) => {
return (
{item}
);
})}
);
}