mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
code cleanup
This commit is contained in:
18
frontend/src/components/TabPanel/index.js
Normal file
18
frontend/src/components/TabPanel/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
|
||||
const TabPanel = ({ children, value, name, ...rest }) => {
|
||||
if (value === name) {
|
||||
return (
|
||||
<div
|
||||
role="tabpanel"
|
||||
id={`simple-tabpanel-${name}`}
|
||||
aria-labelledby={`simple-tab-${name}`}
|
||||
{...rest}
|
||||
>
|
||||
<>{children}</>
|
||||
</div>
|
||||
);
|
||||
} else return null;
|
||||
};
|
||||
|
||||
export default TabPanel;
|
||||
Reference in New Issue
Block a user