diff --git a/packages/components/src/v-stack/component.js b/packages/components/src/v-stack/component.js index a37186a04df17..aaf893a757fd6 100644 --- a/packages/components/src/v-stack/component.js +++ b/packages/components/src/v-stack/component.js @@ -1,9 +1,20 @@ /** * Internal dependencies */ -import { createComponent } from '../ui/utils'; +import { contextConnect } from '../ui/context'; +import { View } from '../view'; import { useVStack } from './hook'; +/** + * @param {import('../ui/context').WordPressComponentProps} props + * @param {import('react').Ref} forwardedRef + */ +function VStack( props, forwardedRef ) { + const vStackProps = useVStack( props ); + + return ; +} + /** * `VStack` (or Vertical Stack) is a layout component that arranges child elements in a vertical line. * @@ -27,10 +38,6 @@ import { useVStack } from './hook'; * } * ``` */ -const VStack = createComponent( { - as: 'div', - useHook: useVStack, - name: 'VStack', -} ); +const ConnectedVStack = contextConnect( VStack, 'VStack' ); -export default VStack; +export default ConnectedVStack;