refactor: remove singular component
This commit is contained in:
parent
fe881d5aed
commit
9097a6e566
|
|
@ -1,18 +0,0 @@
|
||||||
import { LayoutComponentDefinition, LayoutContext } from "@vibentec/component-map"
|
|
||||||
|
|
||||||
export default function VtInput({
|
|
||||||
nodes,
|
|
||||||
context,
|
|
||||||
}: {
|
|
||||||
nodes: LayoutComponentDefinition
|
|
||||||
context: LayoutContext
|
|
||||||
}) {
|
|
||||||
const props = nodes.config || {}
|
|
||||||
return (
|
|
||||||
<input
|
|
||||||
className={props?.className ?? ""}
|
|
||||||
type={props?.type ?? "text"}
|
|
||||||
placeholder={props?.placeholder ?? ""}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
import {
|
|
||||||
LayoutComponentDefinition,
|
|
||||||
LayoutContext,
|
|
||||||
} from "@vibentec/component-map"
|
|
||||||
import { DynamicLayoutRenderer } from "@vibentec/renderer"
|
|
||||||
|
|
||||||
export default function VtSection({
|
|
||||||
nodes,
|
|
||||||
context,
|
|
||||||
}: {
|
|
||||||
nodes: LayoutComponentDefinition
|
|
||||||
context: LayoutContext
|
|
||||||
}) {
|
|
||||||
const props = nodes.config || {}
|
|
||||||
return (
|
|
||||||
<section className={props.className}>
|
|
||||||
{nodes.children && (
|
|
||||||
<DynamicLayoutRenderer nodes={nodes.children} context={context} />
|
|
||||||
)}
|
|
||||||
</section>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue