import React from 'react';
import {
preview__Tearsheet as Tearsheet,
preview__Tearsheet as MyTearsheet,
preview__Tearsheet as AnotherSheet,
} from '@carbon/ibm-products';
import { Button } from '@carbon/react';
// Edge Case 1: Multiple imports with different aliases
export const MultipleAliases = () => {
return (<>
{}}>
Content 1
{}}>
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 (
{}}>
);
};
// Edge Case 7: Tearsheet in conditional
export const ConditionalTearsheet = ({ show }: { show: boolean }) => {
return show ? (
{}}>
Content
) : null;
};
// Edge Case 8: Tearsheet in array map
export const MappedTearsheets = () => {
const items = [1, 2, 3];
return (<>
{items.map((i) => (
{}}>
Content {i}
))}
>);
};
// Edge Case 9: Tearsheet with all deprecated props
export const AllDeprecatedProps = () => {
return (
{}} decorator={Slug
}>
Content
);
};
// Edge Case 10: Empty Tearsheet
export const EmptyTearsheet = () => {
return (
{}}>
);
};