MCPcopy Create free account
hub / github.com/dailydotdev/apps / NoSidebarLayout

Function NoSidebarLayout

packages/shared/src/components/NoSidebarLayout.tsx:17–44  ·  view source on GitHub ↗
({
  className,
  children,
  hideBackButton = false,
}: PropsWithChildren & {
  hideBackButton?: boolean;
  className?: string;
})

Source from the content-addressed store, hash-verified

15 * @constructor
16 */
17export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected