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

Function FeedTab

packages/shared/src/components/plus/PlusFeedBannerScenes.tsx:332–353  ·  view source on GitHub ↗
({
  active = false,
  accent,
  children,
}: {
  active?: boolean;
  accent?: PlusBannerAccent;
  children: ReactNode;
})

Source from the content-addressed store, hash-verified

330};
331
332const FeedTab = ({
333 active = false,
334 accent,
335 children,
336}: {
337 active?: boolean;
338 accent?: PlusBannerAccent;
339 children: ReactNode;
340}): ReactElement => (
341 <span
342 className={classNames(
343 'flex h-7 items-center gap-1 rounded-10 px-2.5 font-bold transition-colors duration-300 typo-footnote',
344 active && accent && 'plus-banner-tint-chip',
345 active && !accent && 'bg-surface-float text-text-primary',
346 !active && 'text-text-tertiary',
347 )}
348 style={accentStyle(accent)}
349 >
350 <HashtagIcon size={IconSize.Size16} />
351 {children}
352 </span>
353);
354
355const mixedFeed = [{ tag: 'career' }, { tag: 'design' }, { tag: 'kubernetes' }];
356const aiCodingFeed = [

Callers

nothing calls this directly

Calls 1

accentStyleFunction · 0.85

Tested by

no test coverage detected