* fix: separate Filter Segment implementation from DataTableProvider * disable components * early return * fix type error * add missing export
15 lines
345 B
TypeScript
15 lines
345 B
TypeScript
// eslint-disable-next-line no-restricted-imports
|
|
import { noop } from "lodash";
|
|
|
|
import { type UseSegments } from "../lib/types";
|
|
|
|
export const useSegmentsNoop: UseSegments = ({}) => {
|
|
return {
|
|
segments: [],
|
|
selectedSegment: undefined,
|
|
canSaveSegment: false,
|
|
setAndPersistSegmentId: noop,
|
|
isSegmentEnabled: false,
|
|
};
|
|
};
|