You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
661 B
TypeScript

import { Locales } from '@/locales/resources';
import { DiscoverService } from '@/server/services/discover';
import Back from '../../(detail)/features/Back';
import List from '../../(list)/plugins/features/List';
const PluginsResult = async ({
locale,
q,
mobile,
}: {
locale: Locales;
mobile?: boolean;
q: string;
}) => {
const discoverService = new DiscoverService();
const items = await discoverService.searchPlugin(locale, q);
return (
<>
{!mobile && <Back href={'/discover/plugins'} style={{ marginBottom: 0 }} />}
<List items={items} mobile={mobile} searchKeywords={q} />
</>
);
};
export default PluginsResult;