components

This commit is contained in:
Josh Hawkins 2026-03-27 08:22:10 -05:00
parent 6c658050df
commit b77f68c6ab
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,18 @@
import React from "react";
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
export default function ConfigTabs({ children }) {
return (
<Tabs
groupId="config-method"
defaultValue="ui"
values={[
{ label: "Frigate UI", value: "ui" },
{ label: "YAML", value: "yaml" },
]}
>
{children}
</Tabs>
);
}

View File

@ -0,0 +1,30 @@
import React from "react";
export default function NavPath({ path }) {
const segments = path.split(" > ");
return (
<span
style={{
display: "inline",
fontSize: "inherit",
lineHeight: "inherit",
}}
>
{segments.map((seg, i) => (
<span key={i}>
{i > 0 && (
<span
style={{
margin: "0 4px",
color: "var(--ifm-color-emphasis-500)",
}}
>
</span>
)}
<strong>{seg}</strong>
</span>
))}
</span>
);
}