Download src/components/features/automations/detail/plugins-section.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/automations/detail/plugins-section.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/automations/detail/plugins-section.tsx
-
curl -L -o plugins-section.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/automations/detail/plugins-section.tsx
721 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| import PuzzleIcon from "#/icons/puzzle.svg?react"; | |
| import { SectionCard } from "./section-card"; | |
| import { PluginChip } from "./plugin-chip"; | |
| interface PluginsSectionProps { | |
| plugins: string[]; | |
| } | |
| export function PluginsSection({ plugins }: PluginsSectionProps) { | |
| const { t } = useTranslation("openhands"); | |
| return ( | |
| <SectionCard | |
| icon={<PuzzleIcon className="size-4" />} | |
| title={t(I18nKey.AUTOMATIONS$DETAIL$PLUGINS)} | |
| > | |
| <div className="flex flex-wrap gap-2"> | |
| {plugins.map((plugin) => ( | |
| <PluginChip key={plugin} name={plugin} /> | |
| ))} | |
| </div> | |
| </SectionCard> | |
| ); | |
| } | |