import * as React from "react"; import "./SectionDividerWidget.scss"; import Icon from "../Icon"; import { IconType } from "../Icon/Icon"; export interface SectionDividerWidgetProps { label: string; } export interface SectionDividerWidgetState { } const getIconByLabel = (label: string) => { if (label === "Finnish") { return } if (label === "English") { return } console.error(`No icon found for label: ${label}`); return null; } class SectionDividerWidget extends React.Component { render() { const { label } = this.props; return (

{label} {getIconByLabel(label)}

); } } export default SectionDividerWidget;