mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-17 09:46:33 +00:00
Added to `docs/how_to/tools_runtime` as a proof of concept, will apply everywhere if we like. A bit more compact than the default callouts, will help standardize the layout of our pages since we frequently use these boxes. <img width="1088" alt="Screenshot 2024-07-23 at 4 49 02 PM" src="https://github.com/user-attachments/assets/7380801c-e092-4d31-bcd8-3652ee05f29e">
19 lines
619 B
JavaScript
19 lines
619 B
JavaScript
import React from "react";
|
|
import Admonition from '@theme/Admonition';
|
|
|
|
export default function Prerequisites({ titlesAndLinks }) {
|
|
return (
|
|
<Admonition type="info" title="Prerequisites" icon="📚">
|
|
<ul style={{ fontSize: "15px", lineHeight: "1.5em" }}>
|
|
{titlesAndLinks.map(([title, link], i) => {
|
|
return (
|
|
<li key={`prereq-${link.replace(/\//g, "")}-${i}`}>
|
|
<a href={link}>{title}</a>
|
|
</li>
|
|
);
|
|
})}
|
|
</ul>
|
|
</Admonition>
|
|
);
|
|
}
|