refactor: remove singular component

This commit is contained in:
Nam Doan 2025-12-11 12:54:08 +07:00
parent fe881d5aed
commit 9097a6e566
2 changed files with 0 additions and 40 deletions

View File

@ -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 ?? ""}
/>
)
}

View File

@ -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>
)
}