feat: update search result

This commit is contained in:
JimmFly
2022-12-13 18:02:07 +08:00
parent b623ede358
commit 32d24d322a
5 changed files with 31 additions and 13 deletions
@@ -1,9 +1,9 @@
import React from 'react';
import { Command, useCommandState } from 'cmdk';
const noResult = () => {
const NoResult = (props: { query: string }) => {
const search = useCommandState(state => state.search);
return <Command.Empty>No results found for "{search}".</Command.Empty>;
};
export default noResult;
export default NoResult;