github
154 of 220 branches covered (0.0%)
Branch coverage included in aggregate %.
163 of 173 new or added lines in 13 files covered. (94.22%)
3867 of 4271 relevant lines covered (90.54%)
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✔ |