push
github
149 of 215 branches covered (0.0%)
Branch coverage included in aggregate %.
94 of 102 new or added lines in 4 files covered. (92.16%)
3816 of 4218 relevant lines covered (90.47%)
4.24 hits per line
|
import { ReactNode } from 'react'; |
2✔ |
|
import { Heading, Text } from '@deriv/quill-design'; |
2✔ |
|
|
2✔ |
|
export const HeaderSection = ({ |
|
|
header, |
2✔ |
|
description, |
2✔ |
|
TabHeader, |
2✔ |
|
}: { |
2✔ |
|
header?: string;
|
2✔ |
|
description?: string;
|
2✔ |
|
TabHeader?: () => ReactNode; |
2✔ |
|
}) => { |
2✔ |
|
return (
|
2✔ |
|
<div className="flex w-full flex-col items-center gap-gap-2xl">
|
2✔ |
|
{header && <Heading.H2>{header}</Heading.H2>} |
2✔ |
|
{(description || TabHeader) && ( |
|
NEW
|
<div className="flex w-full flex-col items-center gap-gap-xl">
|
× |
NEW
|
{TabHeader && <TabHeader />} |
× |
NEW
|
{description && ( |
× |
NEW
|
<Text className="text-center" size="md"> |
× |
NEW
|
{description} |
× |
NEW
|
</Text> |
× |
NEW
|
)} |
× |
NEW
|
</div> |
× |
|
)} |
2✔ |
|
</div> |
2✔ |
|
); |
2✔ |
|
}; |
2✔ |