{"size": 657, "ext": "js", "max_stars_repo_path": "src/components/Menu/MenuTitle/__stories__/MenuTitle.stories.js", "max_stars_repo_name": "LeanyLabs/monday-ui-react-core", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Menu/MenuTitle/__stories__/MenuTitle.stories.js", "max_issues_repo_name": "LeanyLabs/monday-ui-react-core", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Menu/MenuTitle/__stories__/MenuTitle.stories.js", "max_forks_repo_name": "LeanyLabs/monday-ui-react-core", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.5789473684, "max_line_length": 97, "alphanum_fraction": 0.7108066971}
import React from "react";
import MenuTitle from "../MenuTitle";
import Menu from "../../Menu/Menu";
import MenuItem from "../../MenuItem/MenuItem";
import { createComponentTemplate } from "../../../../storybook/functions/create-component-story";

export const menuTitleTemplate = createComponentTemplate(MenuTitle);

export const menuTitleCaptionPositionsTemplate = () => [
  <Menu>
    <MenuTitle caption="Top caption" captionPosition={MenuTitle.positions.top} />
    <MenuItem title="Menu item" />
  </Menu>,
  <Menu>
    <MenuTitle caption="Center caption" captionPosition={MenuTitle.positions.CENTER} />
    <MenuItem title="Menu item" />
  </Menu>
];
