mirror of
https://github.com/fleetdm/fleet
synced 2026-05-18 06:28:40 +00:00
This is the feature branch for the [queued scripts](https://github.com/fleetdm/fleet/issues/15529) story. --------- Co-authored-by: Jahziel Villasana-Espinoza <jahziel@fleetdm.com> Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com> Co-authored-by: Sarah Gillespie <73313222+gillespi314@users.noreply.github.com> Co-authored-by: Roberto Dip <dip.jesusr@gmail.com>
24 lines
554 B
TypeScript
24 lines
554 B
TypeScript
import React from "react";
|
|
import classnames from "classnames";
|
|
|
|
interface ITabsWrapperProps {
|
|
children: React.ReactChild | React.ReactChild[];
|
|
className?: string;
|
|
}
|
|
|
|
/*
|
|
* This component exists so we can unify the styles
|
|
* and overwrite the loaded React Tabs styles.
|
|
*/
|
|
const baseClass = "component__tabs-wrapper";
|
|
|
|
const TabsWrapper = ({
|
|
children,
|
|
className,
|
|
}: ITabsWrapperProps): JSX.Element => {
|
|
const classNames = classnames(baseClass, className);
|
|
|
|
return <div className={classNames}>{children}</div>;
|
|
};
|
|
|
|
export default TabsWrapper;
|