MCPcopy Create free account
hub / github.com/AlariCode/top-app-demo / ButtonIcon

Function ButtonIcon

components/ButtonIcon/ButtonIcon.tsx:6–19  ·  view source on GitHub ↗
({ appearance, icon, className, ...props }: ButtonIconProps)

Source from the content-addressed store, hash-verified

4import React from 'react';
5
6export const ButtonIcon = ({ appearance, icon, className, ...props }: ButtonIconProps): JSX.Element => {
7 const IconComp = icons[icon];
8 return (
9 <button
10 className={cn(styles.button, className, {
11 [styles.primary]: appearance == 'primary',
12 [styles.white]: appearance == 'white',
13 })}
14 {...props}
15 >
16 <IconComp />
17 </button>
18 );
19};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected