import * as React from "react";
import { storiesOf } from "@storybook/react";
import { ComponentTimingRoot } from "../index";
import { Timer } from "./example-components/timer";
import { AlternatingBlock } from "./example-components/alternating-block";
import { CustomBlock } from "./example-components/custom-block";
import { DelayedBlock } from "./example-components/delayed-block";
import { Navigation } from "./example-components/navigation";
import { actionReporter } from "./example-reporters/action-reporter";
storiesOf("Component timing", module)
.add("With a navigation and a timer", () => (
))
.add("With a nested loading components", () => (
isSelfLoaded && red && green && blue && orange
}
>
))
.add("With a randomly ordered child components", () => (
{[1, 2, 3, 4, 5, 6, 7, 8].map(i => (
))}
))
.add("With an alternating child", () => (
isSelfLoaded && pink}
>
));