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

Function ButtonIcon

packages/shared/src/components/fields/SearchField.tsx:53–63  ·  view source on GitHub ↗
({
  isPrimary,
  ...attrs
}: IconProps & {
  isPrimary: boolean;
})

Source from the content-addressed store, hash-verified

51}
52
53const ButtonIcon = ({
54 isPrimary,
55 ...attrs
56}: IconProps & {
57 isPrimary: boolean;
58}) =>
59 isPrimary ? (
60 <CloseIcon {...attrs} />
61 ) : (
62 <ArrowIcon {...attrs} className="rotate-90" />
63 );
64
65export const SearchField = forwardRef(function SearchField(
66 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected