mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 19:16:29 +08:00
13 lines
378 B
TypeScript
13 lines
378 B
TypeScript
import React from 'react';
|
|
import { Command, useCommandState } from 'cmdk';
|
|
|
|
const NoResult = () => {
|
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
|
|
const search = useCommandState(state => state.search);
|
|
// eslint-disable-next-line react/no-unescaped-entities
|
|
return <Command.Empty>No results found for "{search}".</Command.Empty>;
|
|
};
|
|
|
|
export default NoResult;
|