({
className,
children,
hideBackButton = false,
}: PropsWithChildren & {
hideBackButton?: boolean;
className?: string;
})
| 15 | * @constructor |
| 16 | */ |
| 17 | export function NoSidebarLayout({ |
| 18 | className, |
| 19 | children, |
| 20 | hideBackButton = false, |
| 21 | }: PropsWithChildren & { |
| 22 | hideBackButton?: boolean; |
| 23 | className?: string; |
| 24 | }): ReactNode { |
| 25 | return ( |
| 26 | <div className={className}> |
| 27 | {!hideBackButton && ( |
| 28 | <div className="hidden h-12 items-center gap-2 border-b border-border-subtlest-tertiary px-4 tablet:flex laptop:hidden"> |
| 29 | <Link href={webappUrl} passHref> |
| 30 | <Button |
| 31 | tag="a" |
| 32 | variant={ButtonVariant.Tertiary} |
| 33 | size={ButtonSize.Small} |
| 34 | icon={<ArrowIcon className="-rotate-90" />} |
| 35 | > |
| 36 | Back |
| 37 | </Button> |
| 38 | </Link> |
| 39 | </div> |
| 40 | )} |
| 41 | {children} |
| 42 | </div> |
| 43 | ); |
| 44 | } |
nothing calls this directly
no outgoing calls
no test coverage detected