|
@@ -1,19 +1,14 @@
|
|
|
-import type {
|
|
|
|
|
- ForwardRefRenderFunction,
|
|
|
|
|
-} from 'react';
|
|
|
|
|
import React, {
|
|
import React, {
|
|
|
- forwardRef, useCallback,
|
|
|
|
|
|
|
+ useCallback,
|
|
|
} from 'react';
|
|
} from 'react';
|
|
|
|
|
|
|
|
-import type { IFocusable } from '~/client/interfaces/focusable';
|
|
|
|
|
-
|
|
|
|
|
import { useSearchModal } from '../../features/search/client/stores/search';
|
|
import { useSearchModal } from '../../features/search/client/stores/search';
|
|
|
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
|
keywordOnInit: string,
|
|
keywordOnInit: string,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-export const SearchModalTriggerinput: ForwardRefRenderFunction<IFocusable, Props> = (props: Props) => {
|
|
|
|
|
|
|
+export const SearchModalTriggerinput: React.FC<Props> = (props: Props) => {
|
|
|
const { keywordOnInit } = props;
|
|
const { keywordOnInit } = props;
|
|
|
|
|
|
|
|
const { open: openSearchModal } = useSearchModal();
|
|
const { open: openSearchModal } = useSearchModal();
|