Files
twenty/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidgetChartContainer.tsx
T
nitin 24b7075f60 [Dashboards] - refactor - line chart (#14507)
This is the second PR from the split of
https://github.com/twentyhq/twenty/pull/14458 - refactoring only the
LineChart widget.
2025-09-15 20:29:22 +05:30

24 lines
499 B
TypeScript

import styled from '@emotion/styled';
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;