Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3684 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3684 Rev 3719
Línea 1... Línea 1...
1
import React from 'react';
1
import React from 'react';
2
import { Button } from '@mui/material';
2
import { Button } from '@mui/material';
3
 
3
 
4
import { GridItem } from '@shared/components/grid';
4
import { GridItem } from '@shared/components/grid';
5
 
5
 
6
export function JoinedGroupsCard({ group: { name, privacy, image }, onView, onLeave }) {
6
export function JoinedGroupsCard({ group: { name, privacy, image }, onView, onLeave }) {
7
  return (
7
  return (
8
    <GridItem
8
    <GridItem
9
      image={image}
9
      image={image}
10
      name={name}
10
      name={name}
11
      status={privacy}
11
      status={privacy}
12
      renderActions={() => (
12
      renderActions={() => (
13
        <>
13
        <>
14
          {onView && <Button onClick={onView}>Ver grupo</Button>}
14
          {onView && <Button onClick={onView}>Ver grupo</Button>}
15
          {onLeave && <Button onClick={onLeave}>Abandonar grupo</Button>}
15
          {onLeave && <Button onClick={onLeave}>Abandonar grupo</Button>}
16
        </>
16
        </>
17
      )}
17
      )}
18
    />
18
    />
19
  );
19
  );
20
}
20
}