dashpresshq/dashpress

View on GitHub
src/shared/logic/entities/selection.utils.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import type { IColorableSelection } from "@/shared/types/ui";

export const isUseColorsFlagOn = (selections: IColorableSelection[]) => {
  if (selections.length === 0) {
    return true;
  }
  return !!selections[0].spectrum;
};