import React from 'react'
import { ProductIngredient as ProductIngredientController } from 'ordering-components/native'
import { Container } from './styles'
import MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons'
import { View } from 'react-native'
import { OText } from '../shared'
import { useTheme } from 'styled-components/native'
const ProductIngredientUI = (props: any) => {
const {
state,
ingredient,
toggleSelect
} = props
const theme = useTheme();
return (
toggleSelect()}>
{state?.selected ? (
) : (
)}
{ingredient.name}
)
}
export const ProductIngredient = (props: any) => {
const productIngredientProps = {
...props,
UIComponent: ProductIngredientUI
}
return (
)
}