mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 04:36:13 +08:00
feat: update search result
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user