import { LayoutComponentDefinition, LayoutContext } from "@vibentec/component-map"
import { DynamicLayoutRenderer } from "@vibentec/renderer"

export default function VtSocialLinks({
  nodes,
  context,
}: {
  nodes: LayoutComponentDefinition
  context: LayoutContext
}) {
  const props = nodes.config ?? {}
  return (
    <div className={props.className ?? ""}>
      {nodes.children && <DynamicLayoutRenderer nodes={nodes.children} context={context} />}
    </div>
  )
}