Merge feat/component-sequential: resolve conflicts in component/index.ts
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
export { Parallel } from "./parallel.js";
|
||||
export type { ParallelProps } from "./parallel.js";
|
||||
export type { ParallelProps } from "./parallel.js";
|
||||
export { Sequential } from "./sequential.js";
|
||||
export type { SequentialProps } from "./sequential.js";
|
||||
@@ -1 +1,18 @@
|
||||
export {};
|
||||
import type { UElement, UNode } from "@alkdev/ujsx";
|
||||
|
||||
export interface SequentialProps {
|
||||
id?: string;
|
||||
}
|
||||
|
||||
function Sequential(props: SequentialProps & { children?: UNode[] }): UElement {
|
||||
const { id, children } = props;
|
||||
return {
|
||||
type: "sequential",
|
||||
props: id !== undefined ? { id } : {},
|
||||
children: children ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
Sequential.displayName = "Sequential";
|
||||
|
||||
export { Sequential };
|
||||
Reference in New Issue
Block a user