import StatusPill from '@/components/workshop/StatusPill';
import { workshopService } from '@/services/workshopService';
export default function OriginBadge({ record, showAll = false }) {
  if (!record) return null;
  if (workshopService.isFictional(record)) return <StatusPill tone="red">FICTIONAL TEST DATA</StatusPill>;
  if (showAll && record.data_origin && record.data_origin !== 'Workshop Created') return <StatusPill tone="slate">{record.data_origin}</StatusPill>;
  if (record.data_origin === 'Public Intake') return <StatusPill tone="green">Public Intake</StatusPill>;
  return null;
}