@commercelayer/react-components
Version:
The Official Commerce Layer React Components
13 lines (12 loc) • 402 B
TypeScript
import type { DefaultChildrenType } from '../typings/globals';
import type { JSX } from "react";
interface Props<T> {
children: DefaultChildrenType;
filterBy: T[];
componentName: string;
}
/**
* Filter children by component display name
*/
export default function filterChildren<T = string>({ children, filterBy, componentName }: Props<T>): JSX.Element | JSX.Element[] | null;
export {};