@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
14 lines (13 loc) • 472 B
TypeScript
import React, { ReactNode } from "react";
import type { TimelineRowProps } from "..";
import { Period } from "./types.external";
type ParsedRow = {
label: string;
icon?: React.ReactNode;
headingTag?: string;
periods: Omit<Period, "id" | "endInclusive">[];
restProps: Omit<TimelineRowProps, "label" | "icon" | "headingTag">;
ref?: React.Ref<HTMLOListElement>;
};
export declare const parseRows: (rowChildren: ReactNode[]) => ParsedRow[];
export {};