aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/pages/Runbooks.tsx
blob: 6b5175536a771725a65445ff72943a457cc773e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Editor from "@/components/runbooks/editor/Editor";
import List from "@/components/runbooks/List";
import { useStore } from "@/state/store";

export default function Runbooks() {
  const currentRunbook = useStore((store) => store.currentRunbook);

  return (
    <div className="flex w-full !max-w-full flex-row ">
      <List />
      {currentRunbook && <Editor />}

      {!currentRunbook && (
        <div className="flex align-middle justify-center flex-col h-screen w-full">
          <h1 className="text-center">Select or create a runbook</h1>
        </div>
      )}
    </div>
  );
}