import { Divider } from 'components/divider';
import { Col, Container, Row } from 'components/layout';
import { RadioItem, RadioItemOptionsProps } from 'components/radio-item';
import { Switch } from 'components/switch';
import { Text } from 'components/text';
import { TextField } from 'components/text-field';
import { useResponsiveLayout } from 'hooks';
import { ChatFill, Mic, Post, VideoCamera } from 'icons';
import { IconProps } from 'icons/types';
import { FC, useCallback } from 'react';
import { RoomTypeEnum } from 'expo-schema';
const groups: RadioItemOptionsProps[] = [
{
type: RoomTypeEnum.Chat,
title: 'Chat',
Icon: (props: IconProps) => ,
isSelected: true,
},
{
type: RoomTypeEnum.Post,
title: 'Post',
Icon: (props: IconProps) => ,
isSelected: false,
},
{
type: RoomTypeEnum.Audio,
title: 'Audio',
Icon: (props: IconProps) => ,
isSelected: false,
},
{
type: RoomTypeEnum.Video,
title: 'Video',
Icon: (props: IconProps) => ,
isSelected: false,
},
];
export const Group: FC = ({
type: selectedItem,
setType,
name,
setName,
topic,
setTopic,
recordAutomatically,
hideRecordingsDefault,
setRecordAutomatically,
setHideRecordingsDefault,
}) => {
const { isSmall, isMobile } = useResponsiveLayout();
const direction = isSmall ? 'column' : 'row';
const mt = direction === 'column' ? 's' : undefined;
const isItemSelected = useCallback(
(type: string | undefined) => {
return type === selectedItem;
},
[selectedItem]
);
const getMarginLeft = useCallback(
(index) => {
return index === 0 || isSmall ? 0 : 'xs';
},
[isSmall]
);
const outerHeight = isMobile ? undefined : 300;
return (
{groups.map((item, index) => (
))}
Room Name
Topic
);
};
type GroupType = {
type: RoomTypeEnum;
name: string;
topic: string;
recordAutomatically: boolean;
hideRecordingsDefault: boolean;
setName: (value: string) => void;
setType: (value: string) => void;
setTopic: (value: string) => void;
setRecordAutomatically: (value: boolean) => void;
setHideRecordingsDefault: (value: boolean) => void;
};