sparkletown/sparkle

View on GitHub
src/components/molecules/AdminTitleBar/AdminTitleBar.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";
import classNames from "classnames";

import "./AdminTitleBar.scss";

export interface AdminTitleBarProps {
  variant: "simple-title" | "two-rows" | "grid-with-tools";
}

export const AdminTitleBar: React.FC<AdminTitleBarProps> = ({
  variant,
  children,
}) => {
  const parentClasses = classNames(
    "AdminTitleBar",
    `AdminTitleBar--${variant}`
  );
  return <div className={parentClasses}>{children}</div>;
};