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

Function CloseButtonComponent

packages/shared/src/components/CloseButton.tsx:7–25  ·  view source on GitHub ↗
(
  {
    size = ButtonSize.Medium,
    variant = ButtonVariant.Tertiary,
    ...props
  }: ButtonProps<'button'>,
  ref: Ref<HTMLButtonElement>,
)

Source from the content-addressed store, hash-verified

5import { MiniCloseIcon as CloseIcon } from './icons';
6
7function CloseButtonComponent(
8 {
9 size = ButtonSize.Medium,
10 variant = ButtonVariant.Tertiary,
11 ...props
12 }: ButtonProps<'button'>,
13 ref: Ref<HTMLButtonElement>,
14): ReactElement {
15 return (
16 <Button
17 title="Close"
18 {...props}
19 size={size}
20 variant={variant}
21 ref={ref}
22 icon={<CloseIcon />}
23 />
24 );
25}
26
27const CloseButton = forwardRef(CloseButtonComponent);
28

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected