<script setup lang="ts">
import { TableRow as ShadcnTableRow } from '@/components/core/table';
import type { UiTableRowProps } from './types';

defineOptions({
  name: 'UiTableRow',
});

const props = withDefaults(defineProps<UiTableRowProps>(), {
  selected: false,
});
</script>

<template>
  <ShadcnTableRow :data-state="props.selected ? 'selected' : undefined">
    <slot />
  </ShadcnTableRow>
</template>
