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

Function ToolSection

packages/webapp/components/tools/ToolSection.tsx:12–31  ·  view source on GitHub ↗
({
  title,
  action,
  children,
  id,
}: ToolSectionProps)

Source from the content-addressed store, hash-verified

10}
11
12export const ToolSection = ({
13 title,
14 action,
15 children,
16 id,
17}: ToolSectionProps): ReactElement => (
18 <section
19 id={id}
20 className="flex scroll-mt-[calc(var(--safe-area-top,0px)+var(--shell-top,4rem))] flex-col gap-4 py-8"
21 >
22 <div className="flex items-center gap-3">
23 <EntitySectionHeading className="!mb-0 !mt-0">
24 {title}
25 </EntitySectionHeading>
26 <div className="h-px flex-1 bg-border-subtlest-tertiary" />
27 {action}
28 </div>
29 {children}
30 </section>
31);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected