REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 848 B
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/design-system/src/atoms/tabs/tab.tsx
Text
Base64
import React, { PropsWithChildren, useLayoutEffect } from 'react' import { useTabs } from './tabs.jsx' export interface TabProps extends PropsWithChildren { /** * ID of the Tab. It has to be a unique string */ id: string /** * Title of the Tab that will be shown on the tab navigation bar. */ label: string } /** * Renders children inside Tabs component. Each Tab will add a single tab in * the navigation bar. */ export const Tab: React.FC<TabProps> = ({ id, label, children }) => { const { currentTab, registerTab, unregisterTab } = useTabs() useLayoutEffect(() => { registerTab(id, label) return () => unregisterTab(id) }) if (id !== currentTab) { return null } // eslint-disable-next-line react/jsx-no-useless-fragment return <>{children}</> } Tab.displayName = 'Tab' export default Tab
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.ts
53 B
lrw-r--r--
2026-02-28 00:31:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tab.tsx
848 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tabs.stories.tsx
704 B
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tabs.tsx
4.35 KB
lrw-r--r--
2026-02-28 00:32:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).