import React from 'react';
import {View} from 'react-native';
import {Skeleton} from '@components/_HuGo/Skeleton';
import {useTheme} from '@shared/theme';

import {styles} from './styles';

export function CommentSkeleton() {
  const {spacing, theme} = useTheme();

  return (
    <Skeleton>
      <View
        style={[styles.container, {backgroundColor: theme.neutralBgTerciary}]}>
        <View style={styles.header}>
          <Skeleton.Item
            rounded
            style={styles.image}
            height={spacing.x5}
            width={spacing.x5}
          />
          <Skeleton.Item height={160} style={styles.body} />
        </View>
      </View>
    </Skeleton>
  );
}
