import React from 'react'; import {useShopStore} from "./shop_store"; export function SearchBar() { const search_bar_value = useShopStore((state) => state.search_bar_value); const updateSearchBar = useShopStore((state) => state.updateSearchBar); return (
updateSearchBar(event.target.value)} aria-label="Search"/>
) }