import styled from '@emotion/styled'; import { fontSize } from 'styles/fonts'; const Container = styled.div` display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; `; const Wrapper = styled.div` width: 160px; margin: 8px; font-size: ${fontSize.small}; text-align: center; word-break: break-all; `; export interface Props { icons: Record; size?: number; color?: string; } const IconGallery = ({ icons, size = 24, color = '#585858' }: Props) => { const componentIcons = Object.entries(icons).filter( ([_, content]) => typeof content !== 'string' ); return ( {componentIcons.map(([name, I]) => (
{name}
))}
); }; export default IconGallery;