export const combineStyles = (...args: (string | Record<string, boolean> | undefined | null | false)[]): string => {
    return args
        .flat()
        .filter(Boolean)
        .map(arg => {
            if (typeof arg === 'string') return arg;
            if (typeof arg === 'object' && arg !== null) {
                return Object.entries(arg)
                    .filter(([_, value]) => Boolean(value))
                    .map(([key]) => key)
                    .join(' ');
            }
            return '';
        })
        .filter(Boolean)
        .join(' ');
};
