mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 12:36:24 +08:00
13 lines
305 B
TypeScript
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;
|