Frontend security / security (push) Successful in 9s
Frontend verify / verify (push) Failing after 37m50s
Frontend security / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Failing after 42m10s
Conventional commits / commits (pull_request) Successful in 29s
Enable every plugin recommended preset and replace Biome with ESLint formatting. Preserve API contracts and JSX whitespace; verify source, tests, builds and tooling.
24 lines
570 B
TypeScript
24 lines
570 B
TypeScript
import type { FC } from "react";
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { useStock } from "@/entities/stock";
|
|
|
|
import { BreadcrumbTrail } from "./BreadcrumbTrail";
|
|
|
|
type StockBreadcrumbsProps = { identifier: string };
|
|
const StockBreadcrumbs: FC<StockBreadcrumbsProps> = (props) => {
|
|
const { data } = useStock(props.identifier);
|
|
const { t } = useTranslation();
|
|
return (
|
|
<BreadcrumbTrail
|
|
items={[
|
|
{ label: t("stock.searchTitle"), to: "/stocks" },
|
|
{ label: data?.name ?? t("stock.share") },
|
|
]}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export { StockBreadcrumbs };
|