* feat: add widget definition system * fix: wrong typecheck command in turbo generator * chore: fix formatting * feat: add widget preview page * chore: fix formatting and type errors * chore: fix from widget edit modal and remove some never casts * chore: address pull request feedback
23 lines
521 B
TypeScript
23 lines
521 B
TypeScript
"use client";
|
|
|
|
import { Spotlight } from "@homarr/spotlight";
|
|
import { useScopedI18n } from "@homarr/translation/client";
|
|
import { IconSearch } from "@homarr/ui";
|
|
|
|
export const ClientSpotlight = () => {
|
|
const t = useScopedI18n("common.search");
|
|
|
|
return (
|
|
<Spotlight
|
|
actions={[]}
|
|
nothingFound={t("nothingFound")}
|
|
highlightQuery
|
|
searchProps={{
|
|
leftSection: <IconSearch size={20} stroke={1.5} />,
|
|
placeholder: `${t("placeholder")}`,
|
|
}}
|
|
yOffset={12}
|
|
/>
|
|
);
|
|
};
|