main
| 1 | import { HttpTypes } from "@medusajs/types" |
| 2 | import { UIMatch } from "react-router-dom" |
| 3 | |
| 4 | export const ProductOptionBreadcrumb = ( |
| 5 | match: UIMatch<HttpTypes.AdminProductOptionResponse> |
| 6 | ) => { |
| 7 | const productOption = match.loaderData?.product_option |
| 8 | |
| 9 | if (!productOption) { |
| 10 | return null |
| 11 | } |
| 12 | |
| 13 | return <span>{productOption.title}</span> |
| 14 | } |