github
1381 of 2769 branches covered (49.87%)
10 of 1681 new or added lines in 50 files covered. (0.59%)
1 existing line in 1 file now uncovered.13875 of 76837 relevant lines covered (18.06%)
1.81 hits per line
NEW
|
import { ArrowLeft } from '@teable/icons'; |
|
NEW
|
import { Button } from '@teable/ui-lib/shadcn'; |
× |
NEW
|
|
× |
NEW
|
interface ISettingRightTitle { |
× |
NEW
|
title?: string | React.ReactNode;
|
× |
NEW
|
onBack?: () => void;
|
× |
NEW
|
} |
× |
NEW
|
export const SettingRightTitle = (props: ISettingRightTitle) => { |
× |
NEW
|
const { title, onBack } = props;
|
× |
NEW
|
return (
|
× |
NEW
|
<div className="flex h-16 flex-1 items-center gap-x-4">
|
× |
NEW
|
{onBack && ( |
× |
NEW
|
<Button className="px-0 text-base" variant={'link'} onClick={onBack}> |
× |
NEW
|
<ArrowLeft /> |
× |
NEW
|
</Button> |
× |
NEW
|
)} |
× |
NEW
|
<h2 className="flex-1 text-base">{title}</h2>
|
× |
NEW
|
</div> |
× |
NEW
|
); |
× |
NEW
|
}; |
× |