import { useMemo } from "react";
import { useParsedFilter } from "../../../../../block-provider/hooks/useParsedFilter.mjs";
function useGridCardBlockParams(props) {
    const { params } = props;
    const { filter: parsedFilter } = useParsedFilter({
        filterOption: null == params ? void 0 : params.filter
    });
    const paramsWithFilter = useMemo(()=>({
            ...params,
            filter: parsedFilter
        }), [
        parsedFilter,
        params
    ]);
    return paramsWithFilter;
}
export { useGridCardBlockParams };
