* fix: restore translucent dashboard styling
* fix: restore dashboard widget transparency
* fix: address dashboard review feedback
* fix: apply board opacity to containers
* fix: flatten demo board container
* fix: default board roundness to sm
* fix: restore assistant widget transparency
* Revert "fix: default board roundness to sm"
This reverts commit c235cbdf2b.
* fix: address remaining dashboard review comments
* test: align grid geometry expectations
33 lines
954 B
TypeScript
33 lines
954 B
TypeScript
"use client";
|
|
|
|
import { Center, Stack, Text, ThemeIcon } from "@mantine/core";
|
|
import { IconRobot } from "@tabler/icons-react";
|
|
|
|
import { useI18n } from "@homarr/translation/client";
|
|
|
|
import type { WidgetComponentProps } from "../definition";
|
|
import { useAssistantWidgetRenderer } from "./context";
|
|
|
|
export default function AssistantWidget(props: WidgetComponentProps<"assistant">) {
|
|
const Renderer = useAssistantWidgetRenderer();
|
|
const t = useI18n("widget.assistant.unavailable");
|
|
|
|
if (Renderer) return <Renderer {...props} />;
|
|
|
|
return (
|
|
<Center h="100%" p="md">
|
|
<Stack align="center" gap="xs" ta="center">
|
|
<ThemeIcon variant="light" radius="xl" size="lg">
|
|
<IconRobot size="var(--mantine-font-size-xl)" />
|
|
</ThemeIcon>
|
|
<Text size="sm" fw={600}>
|
|
{t("title")}
|
|
</Text>
|
|
<Text size="xs" c="dimmed">
|
|
{t("description")}
|
|
</Text>
|
|
</Stack>
|
|
</Center>
|
|
);
|
|
}
|