15 lines
271 B
TypeScript
15 lines
271 B
TypeScript
import { UIStore } from "ui/domain/uiStore";
|
|
|
|
type ShowSearchbarUIStore = Pick<
|
|
UIStore,
|
|
"isSearchbarShown" | "searchbarShown"
|
|
>;
|
|
|
|
const hideSearchbarUseCase = (
|
|
store: ShowSearchbarUIStore
|
|
) => {
|
|
store.searchbarShown(false);
|
|
};
|
|
|
|
export { hideSearchbarUseCase };
|