import React from 'react';
import { useLocalSearchParams } from 'expo-router';
import ProductDetail from '@/components/ProductDetail';
import { View } from 'react-native';
import { tw } from 'common-ui';
import FloatingCartBar from '@/components/floating-cart-bar';

export default function ProductDetailPage() {
  const { id } = useLocalSearchParams();
  const productId = id as string;

  return (
    <View style={tw`flex-1`}>

      {/* <View style={tw`absolute bottom-2 left-4 right-4`}>
        <FloatingCartBar />
      </View> */}
      <ProductDetail productId={productId} />
    </View>
  )
}