'use client' import { CustomText } from './styled' import { classNames } from '../../../helpers' import style from './text.module.css' import { TextProps } from 'pkg-components-types' export const Text: React.FC = ({ children, color = 'default', size = '', align = 'start', font = '', weight = 400, className = '', title = '', lineHeight, as: Component = 'span', styles = {}, customSize = '' }) => { const textStyle = { fontSize: size ?? customSize, ...styles } const combinedClasses = Array.isArray(className) ? className.filter(Boolean).join(' ') : String(className) return ( {children} ) }