Files
AFFiNE-Mirror/packages/app/src/components/quick-search/content/index.tsx
T
2022-12-09 20:50:53 +08:00

13 lines
305 B
TypeScript

import React from 'react';
import JumpTo from './JumpTo';
import { Command } from 'cmdk';
import SearchResult from './searchResult';
const Result = (props: { result: string }) => {
return (
<Command.List>{props.result ? <SearchResult /> : <JumpTo />}</Command.List>
);
};
export default Result;