<commit_before>import React from 'react';

import Icon from '@ichef/gypcrete/src/Icon';

import iconSet from '../../../../configs/fontello.config.json';

export default {
    title: '@ichef/gypcrete|Icon',
    component: Icon,
};

export function BasicUsage() {
    return (
        <>
            {
                iconSet.glyphs.map(({ css: iconName }) => (
                    <Icon
                        type={iconName}
                        spinning={iconName.includes('loading')} />
                ))
            }
        </>
    );
}
BasicUsage.story = {
    name: 'Basic Icons Set'
};

export function CRMIconsSet() {
    return (
        <div>
            <Icon type="crm-address" />
            <Icon type="crm-age" />
            <Icon type="crm-birthday" /><commit_msg>Use icon components index in icon storybook<commit_after>import React from 'react';

import Icon from '@ichef/gypcrete/src/Icon';

import iconMap from '@ichef/gypcrete/src/icons/components';

export default {
    title: '@ichef/gypcrete|Icon',
    component: Icon,
};

export function BasicUsage() {
    /**
     * Show all icons, ordering from a to z.
     */
    return (
        <>
            {
                Object.keys(iconMap).sort().map(iconType => (
                    <Icon
                        type={iconType}
                        spinning={iconType.includes('loading')}
                    />
                ))
            }
        </>
    );
}
BasicUsage.story = {
    name: 'Basic Icons Set'
};

export function CRMIconsSet() {
    return (
        <div>
            <Icon type="crm-address" />
            <Icon type="crm-age" />
            <Icon type="crm-birthday" />
{'fraction_non_alphanumeric': 0.14022578728461083, 'fraction_numerical': 0.0, 'mean_word_length': 1.5438066465256797, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7582404', 'n_tokens_mistral': 499, 'n_tokens_neox': 483, 'n_words': 100}