feat: optimize code structure

This commit is contained in:
JimmFly
2022-12-14 12:51:36 +08:00
parent 7be1097e04
commit fc8deafde6
9 changed files with 135 additions and 128 deletions
@@ -2,7 +2,7 @@ import React, { Dispatch, SetStateAction } from 'react';
import { SearchIcon } from '@blocksuite/icons';
import { StyledInputContent, StyledLabel } from './style';
import { Command } from 'cmdk';
const Input = (props: {
export const Input = (props: {
query: string;
setQuery: Dispatch<SetStateAction<string>>;
}) => {
@@ -19,5 +19,3 @@ const Input = (props: {
</StyledInputContent>
);
};
export default Input;