* Eslint updates * linter fixes * Type fixes * More type fixes * Fix isvis * More type fixes * Type Fixes * Consolidate logic to manage options * Linter fixes * Package lock update * Update configs * Version checker * Debug pipeline * Package lock update * Update ci * Strict check * Revert ci * Eslint * Remove rule since it causes issues in CI * Actual matugen fix
33 lines
856 B
TypeScript
33 lines
856 B
TypeScript
export const LeftColumn = ({ isVisible, children }: LeftColumnProps): JSX.Element => {
|
|
return (
|
|
<box className={`card-button-section-container ${isVisible === true ? 'visible' : ''}`}>
|
|
{isVisible === true ? (
|
|
<box vertical hexpand vexpand>
|
|
{children}
|
|
</box>
|
|
) : (
|
|
<box />
|
|
)}
|
|
</box>
|
|
);
|
|
};
|
|
|
|
export const RightColumn = ({ children }: RightColumnProps): JSX.Element => {
|
|
return (
|
|
<box className={'card-button-section-container'}>
|
|
<box vertical hexpand vexpand>
|
|
{children}
|
|
</box>
|
|
</box>
|
|
);
|
|
};
|
|
|
|
interface LeftColumnProps {
|
|
isVisible?: boolean;
|
|
children?: JSX.Element | JSX.Element[];
|
|
}
|
|
|
|
interface RightColumnProps {
|
|
children?: JSX.Element | JSX.Element[];
|
|
}
|