import React from 'react';
import isString from 'lodash/isString';
import {ColorItem, IconItem, Typeset} from '@storybook/blocks';
import type {
TypographySizesType,
TypographyWeights,
} from '../../components/common/atoms/typography/typography.type';
export const colorToPalette = (
colorObj: string | Object,
prefixName?: string,
) => {
return Object.entries(colorObj).map(([colorName, colorValue], index) => {
const title = prefixName ? `${prefixName}.${colorName}` : colorName;
if (isString(colorValue))
return (