import React from "react"; // ui import { Tooltip } from "components/ui"; // types import { TIssueLayouts } from "types"; // constants import { ISSUE_LAYOUTS } from "constants/issue"; type Props = { layouts: TIssueLayouts[]; onChange: (layout: TIssueLayouts) => void; selectedLayout: TIssueLayouts; }; export const LayoutSelection: React.FC = (props) => { const { layouts, onChange, selectedLayout } = props; return (
{ISSUE_LAYOUTS.filter((l) => layouts.includes(l.key)).map((layout) => ( ))}
); };