import React, { isValidElement } from "react"; import type { SkiaProps } from "../processors"; import type { GroupProps } from "../../dom/types"; import type { ChildrenProps } from "../../dom/types/Common"; export interface PublicGroupProps extends Omit { layer?: GroupProps["layer"] | ChildrenProps["children"]; } export const Group = ({ layer, ...props }: SkiaProps) => { if (isValidElement(layer) && typeof layer === "object") { return ( {layer} ); } return ; };