mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-03 13:54:55 +03:00
components
This commit is contained in:
parent
6c658050df
commit
b77f68c6ab
18
docs/src/components/ConfigTabs/index.jsx
Normal file
18
docs/src/components/ConfigTabs/index.jsx
Normal 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>
|
||||
);
|
||||
}
|
||||
30
docs/src/components/NavPath/index.jsx
Normal file
30
docs/src/components/NavPath/index.jsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user