- pgSchema "mesh" with 4 tables isolating the peer mesh domain - Enums: visibility, transport, tier, role - audit_log is metadata-only (E2E encryption enforced at broker/client) - Cascade on mesh delete, soft-delete via archivedAt/revokedAt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
750 B
TypeScript
26 lines
750 B
TypeScript
import { useTranslation } from "@turbostarter/i18n";
|
|
import { CommandGroup, CommandItem } from "@turbostarter/ui-web/command";
|
|
import { Icons } from "@turbostarter/ui-web/icons";
|
|
|
|
import { pathsConfig } from "~/config/paths";
|
|
import { TurboLink } from "~/modules/common/turbo-link";
|
|
|
|
interface ChatActionsProps {
|
|
onSelect: () => void;
|
|
}
|
|
|
|
export const ChatActions = ({ onSelect }: ChatActionsProps) => {
|
|
const { t } = useTranslation(["common", "ai"]);
|
|
|
|
return (
|
|
<CommandGroup heading={t("actions")}>
|
|
<CommandItem asChild>
|
|
<TurboLink href={pathsConfig.apps.chat.index} onClick={onSelect}>
|
|
<Icons.SquarePen />
|
|
<span>{t("chat.new")}</span>
|
|
</TurboLink>
|
|
</CommandItem>
|
|
</CommandGroup>
|
|
);
|
|
};
|