fleet/frontend/components/TabsWrapper/TabsWrapper.tsx
Martin Angers ca435eb244
Queued scripts feature (#16300)
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>
2024-01-29 11:37:54 -03:00

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;