import { Icon } from '@src/ui/components/Icon'; import { IInfo } from '@src/ui/types'; import { withState } from '@src/ui/withState'; import cx from 'classnames'; import React from 'react'; interface NodProps { icon: string; } export const Nod = withState((props: NodProps) => { return (
); }, mapProps); function mapProps(info: IInfo): NodProps { return { icon: info.data.nodIcon, }; }