const createMember = props.createMember; const open = props.open; const onChangeShowAddMemberDialog = props.onChangeShowAddMemberDialog; const functionLoader = props.functionLoader; const componentOwnerId = props.componentOwnerId; const addBoardNameMissing = props.addBoardNameMissing; const OverlayContainer = styled.div` left: 12px; right: 12px; bottom: 0px; top: 40px; position: absolute; z-index: 20; display: flex; background-color: rgba(0, 0, 0, 0.5); justify-content: center; padding-top: 100px; `; const PopupContainer = styled.div` position: relative; background-color: #1d1d21; padding: 1rem; width: 489px; height: fit-content; `; const Text = styled.div` display: flex; column-gap: 0.5rem; align-items: center; color: #fff; font-family: Helvetica Neue; font-size: 24px; font-style: normal; font-weight: 500; line-height: 120% margin-bottom: 1rem; `; const Title = styled.input` color: #fff; font-family: Helvetica Neue; font-size: 20px; font-weight: 500; line-height: 24px; letter-spacing: 0em; text-align: left; width: 100%; height: 40px; padding: 8px 60px 8px 16px; margin-top: 1rem; margin-bottom: 1rem; border-radius: 4px; background-color: transparent; :focus { outline-color: #D0FC42; outline-style: solid; outline-width: 1px; } ::placeholder { color: #D0FC42; } border: none; `; const Input = styled.input` color: #fff; font-family: Helvetica Neue; font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0em; text-align: left; flex: 1; height: 40px; padding: 8px 60px 8px 16px; margin-top: 1rem; margin-bottom: 1rem; border-radius: 4px; background-color: transparent; :focus { outline-color: #D0FC42; outline-style: solid; outline-width: 1px; } ::placeholder { color: #D0FC42; } border: none; `; const Label = styled.label` color: #777583; font-family: Helvetica Neue; font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0em; text-align: left; width: 30%; height: 40px; padding: 8px 60px 8px 16px; margin-top: 1rem; margin-bottom: 1rem; border-radius: 4px; background-color: transparent; :focus { outline-color: #D0FC42; outline-style: solid; outline-width: 1px; } border: none; `; const CloseButton = styled.div` color: #fff; :hover { color: #D0FC42; } cursor: pointer; `; const Header = styled.div` display: flex; flex-direction: row; justify-content: end; align-items: center; `; const InputContainer = styled.div` display: flex; flex-direction: row; align-items: center; `; const Divider = styled.div` width: 100%; height: 1px; background-color: #282933; margin-top: 16px; margin-bottom: 16; `; const FieldContainer = styled.div` position: relative; width: 100%; `; const MissingText = styled.div` position: absolute; right: 36%; top: 75%; font-family: Helvetica Neue; font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0em; color: red; `; const MissingTitle = styled.div` position: absolute; left: 14px; top: 75%; font-family: Helvetica Neue; font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0em; color: red; `; const FunctionButton = styled.button` background-color: #D0FC42; :hover { opacity: 0.8; } color: #0E0E10; border-radius: 4px; margin-top: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; border: none; width: 100%; `; return ( <OverlayContainer> <PopupContainer> <Header> <CloseButton onClick={() => onChangeShowAddBoardDialog(false)}> <i class="bi bi-x-circle"></i> </CloseButton> </Header> <Divider /> <FieldContainer> <Title onChange={onChangeBoardName} value={boardName} placeholder="Add Name"/> {addBoardNameMissing && <MissingTitle> Missing name </MissingTitle> } </FieldContainer> <FunctionButton onClick={createBoard}> {functionLoader ? ( <Widget src={`${componentOwnerId}/widget/Calimero.TaskChain.Loader.Loader`} props={{ size: 16 }} /> ) : ( "Create" )} </FunctionButton> </PopupContainer> </OverlayContainer> );