24b7075f60
This is the second PR from the split of https://github.com/twentyhq/twenty/pull/14458 - refactoring only the LineChart widget.
24 lines
499 B
TypeScript
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;
|