import { ColorName } from '@emotion/react'; import { Avatar } from 'components/avatar'; import { Card } from 'components/card'; import { Divider } from 'components/divider'; import { Col, Container, Row, TouchableHighlight } from 'components/layout'; import { Radio } from 'components/radio'; import { Text } from 'components/text'; import { useProfile, useTheme } from 'hooks'; import { FC, useCallback } from 'react'; import { COLOR_VALUES } from 'theme/color'; export const Sample: FC = ({ title, variant, theme, setTheme }) => { const { themeMode } = useTheme(); const { profile } = useProfile(); const bg = variant === 'light' ? COLOR_VALUES.light['base-01'] : COLOR_VALUES.dark.base; const titleColor = variant === 'light' ? COLOR_VALUES.light['grey-08'] : COLOR_VALUES.dark['grey-08']; const isActive = useCallback( (currentThemeMode) => { return currentThemeMode === themeMode; }, [themeMode] ); return ( setTheme(theme)}> {profile?.name.first} {profile?.name.last} sent a chat message "Cool 👍" on the discussion Core Foundations 2s ago setTheme(theme)} sizeVariant="2-extra-small" colorVariant="title" rightTitle={title} titleColor="title" /> ); }; interface SampleProps { title: string; variant: string; theme: string | null; setTheme: (value: string | null) => void; }