Download wp-calypso/client/layout/hosting-dashboard/column.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 805 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/layout/hosting-dashboard/column.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/layout/hosting-dashboard/column.tsx
-
curl -L -o column.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/layout/hosting-dashboard/column.tsx
805 Bytes
| import clsx from 'clsx'; | |
| import React, { ReactNode } from 'react'; | |
| import Main from 'calypso/components/main'; | |
| import './style.scss'; | |
| type Props = { | |
| children: ReactNode; | |
| className?: string; | |
| wide?: boolean; | |
| withBorder?: boolean; | |
| compact?: boolean; | |
| scrollable?: boolean; | |
| }; | |
| export default function LayoutColumn( { | |
| children, | |
| className, | |
| wide, | |
| withBorder, | |
| compact, | |
| scrollable, | |
| }: Props ) { | |
| return ( | |
| <Main | |
| className={ clsx( 'hosting-dashboard-layout-column', className, { | |
| 'is-with-border': withBorder, | |
| 'is-compact': compact, | |
| 'is-scrollable': scrollable, | |
| } ) } | |
| fullWidthLayout={ wide } | |
| wideLayout={ ! wide } // When we set to full width, we want to set this to false. | |
| > | |
| <div className="hosting-dashboard-layout-column__container">{ children }</div> | |
| </Main> | |
| ); | |
| } | |