snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
35
react/features/welcome/components/TabIcon.tsx
Normal file
35
react/features/welcome/components/TabIcon.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import React from 'react';
|
||||
|
||||
import Icon from '../../base/icons/components/Icon';
|
||||
import { StyleType } from '../../base/styles/functions.any';
|
||||
import BaseTheme from '../../base/ui/components/BaseTheme';
|
||||
import { INACTIVE_TAB_COLOR } from '../constants';
|
||||
|
||||
interface IProps {
|
||||
|
||||
/**
|
||||
* Is the tab focused?
|
||||
*/
|
||||
focused?: boolean;
|
||||
|
||||
/**
|
||||
* The ImageSource to be rendered as image.
|
||||
*/
|
||||
src: Function;
|
||||
|
||||
/**
|
||||
* The component's external style.
|
||||
*/
|
||||
style?: StyleType;
|
||||
}
|
||||
|
||||
const TabIcon = ({ focused, src, style }: IProps) => (
|
||||
<Icon
|
||||
color = { focused ? BaseTheme.palette.icon01 : INACTIVE_TAB_COLOR }
|
||||
size = { 24 }
|
||||
src = { src }
|
||||
style = { style } />
|
||||
);
|
||||
|
||||
|
||||
export default TabIcon;
|
||||
Reference in New Issue
Block a user