Skip to content

The open alternative to Salesforce, designed for AI.

694 B
Raw Blame
import { IconChartBar } from '@ui/icon/components/TablerIcons';
import { type IconComponentProps } from '@ui/icon/types/IconComponent';
import { useTheme } from '@ui/theme';

import styles from './IconChartBarHorizontal.module.scss';

type IconChartBarHorizontalProps = Pick<
  IconComponentProps,
  'size' | 'stroke' | 'color'
>;

export const IconChartBarHorizontal = (props: IconChartBarHorizontalProps) => {
  const theme = useTheme();
  const size = props.size ?? theme.icon.size.md;
  const stroke = props.stroke ?? theme.icon.stroke.sm;

  return (
    <div className={styles.rotatedIconWrapper}>
      <IconChartBar size={size} stroke={stroke} color={props.color} />
    </div>
  );
};