UNPKG

@commercelayer/react-components

Version:
13 lines (12 loc) 402 B
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 {};