import React from 'react';
import {
Tearsheet,
Tearsheet as MyTearsheet,
Tearsheet as AnotherSheet,
} from '@carbon/ibm-products';
import { Button } from '@carbon/react';
// Edge Case 1: Multiple imports with different aliases
export const MultipleAliases = () => {
return (
<>
{}} title="Standard">
Content 1
{}} title="Aliased">
Content 2
>
);
};
// Edge Case 2: No JSX usage (import only)
export const ImportOnly = () => {
const config = {
component: Tearsheet,
};
return
No Tearsheet JSX here
;
};
// Edge Case 3: Tearsheet with no props at all
export const NoProps = () => {
return (
Minimal
);
};
// Edge Case 4: Tearsheet with only root props (no header/footer)
export const OnlyRootProps = () => {
return (
{}} variant="wide">
Just content
);
};
// Edge Case 5: Tearsheet with spread props
export const WithSpread = () => {
const props = { open: true, onClose: () => {} };
return (
Content
);
};
// Edge Case 6: Nested Tearsheets
export const NestedTearsheets = () => {
return (
{}} title="Outer">
{}} title="Inner">
Nested content
);
};
// Edge Case 7: Tearsheet in conditional
export const ConditionalTearsheet = ({ show }: { show: boolean }) => {
return show ? (
{}} title="Conditional">
Content
) : null;
};
// Edge Case 8: Tearsheet in array map
export const MappedTearsheets = () => {
const items = [1, 2, 3];
return (
<>
{items.map((i) => (
{}} title={`Item ${i}`}>
Content {i}
))}
>
);
};
// Edge Case 9: Tearsheet with all deprecated props
export const AllDeprecatedProps = () => {
return (
{}}
slug={Slug
}
influencerPosition="left"
title="Deprecated">
Content
);
};
// Edge Case 10: Empty Tearsheet
export const EmptyTearsheet = () => {
return {}} />;
};