Skip to content

The open alternative to Salesforce, designed for AI.

510 B
Raw Blame
import { styled } from '@linaria/react';

type GraphWidgetChartContainerProps = {
  $isClickable?: boolean;
  $cursorSelector?: string;
};

const StyledGraphWidgetChartContainer = styled.div<GraphWidgetChartContainerProps>`
  flex: 1;
  position: relative;
  width: 100%;

  ${({ $isClickable, $cursorSelector }) =>
    $isClickable && $cursorSelector
      ? `
    ${$cursorSelector} {
      cursor: pointer;
    }
  `
      : ''}
`;

export const GraphWidgetChartContainer = StyledGraphWidgetChartContainer;