mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
* configure context * refactor * get meal with context * random button with context * async actions * refactor meal client
13 lines
309 B
TypeScript
13 lines
309 B
TypeScript
import { FC } from "react";
|
|
import { useMeal } from "../../store/meal";
|
|
import { SearchPage } from "./components/SearchPage";
|
|
|
|
export const Search: FC = () => {
|
|
const { state } = useMeal();
|
|
return (
|
|
<SearchPage
|
|
searchString={state.searchString}
|
|
searchResults={state.search}
|
|
/>
|
|
);
|
|
};
|